On Tue, Feb 2, 2010 at 9:54 AM, Frank Harper wrote:
> From the lack of other replies, I'm guessing something like this isn't
already built in to Watir.
You are correct. As far as I know it is not build into Watir. It is easy
enough to extend Watir methods to do that, and I have done it in my test
Thanks Orde. Yes, I am using the Ruby Logger.
So, to systematically log all clicks at debug level I have wrapped the
link.click method, with something like this:
class My_browser
def self.click_link(link)
Log.instance.debug 'Clicking on ' + link.href
link.click
end
end
From the la
Ruby has a Logger class: http://www.ruby-doc.org/core/classes/Logger.html
It should deliver exactly what you're looking for. Hope it helps.
orde
On Feb 1, 2:02 am, fharper1961 wrote:
> Hi everyone,
>
> I've started using Watir, and it would seem really useful if Watir
> could generate a DEBUG