Nevermind, I'm blind. Line numbers still would have helped :D
On May 11, 11:03 am, AR <reed.a...@gmail.com> wrote:
> a) Yes, of course!
> b) The error looks like it's being thrown from 'example_logger1' - can
> you please post the source of that file? Keeping the line numbers in
> errors helps, too -- it looks like you have removed them.
>
> On May 11, 7:55 am, ash <ashbr...@gmail.com> wrote:
>
> > Having successfully scripted tests in ie and firefox I tried to add
> > logging. Got it working well in ie but when I try the same with
> > firefox I get the following error;
>
> > undefined method `set_logger' for #<FireWatir::Firefox:0x3383cc4>
>
> > This is a sample of my script which produces the error;
>
> > #-------------------------------------------------------------#
> > require 'watir'
> > require 'test/unit'
> > require 'example_logger1'
>
> > class TC_go_to_homepage < Test::Unit::TestCase
>
> > def start
> > Watir::Browser.default = 'firefox'
> > $browser = Watir::Browser.new
> > # $browser.speed = :fast
> > $homepage = "http://www.figleaves.com"
> > filePrefix = "create_account_log"
> > $logger = LoggerFactory.start_xml_logger(filePrefix)
> > $browser.set_logger($logger)
> > end
>
> > def test_a
> > start
> > $logger.log("Beginning of test: Figleaves - Go to Homepage")
> > $logger.log(" Step 1: go to Figleaves.com")
> > $browser.goto $homepage
> > if $browser.url == "http://www.figleaves.com/uk/home.asp"
> > $logger.log(" Result: Passed")
> > else
> > $logger.log(" Result: Failed")
> > end
> > end
>
> > end
> > #-------------------------------------------------------------------#
>
> > I suppose my questions are;
> > 1. Can logging be used with Firefox?
> > 2. If so, what am i missing?
>
> > Cheers...Ash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---