FireWatir doesn't support logging like Watir does. You need to write your own logger for that. You can add a JIRA ticket for this.
- Angrez On Tue, May 12, 2009 at 12:14 PM, ash <ashbr...@gmail.com> wrote: > > Full script with line numbers (followed by the full error); > > 1 #-------------------------------------------------------------# > 2 require 'watir' > 3 require 'test/unit' > 4 require 'example_logger1' > 5 > 6 class TC_go_to_homepage < Test::Unit::TestCase > 7 > 8 def start > 9 Watir::Browser.default = 'firefox' > 10 $browser = Watir::Browser.new > 11 # $browser.speed = :fast > 12 $homepage = "http://www.figleaves.com" > 13 filePrefix = "create_account_log" > 14 $logger = LoggerFactory.start_xml_logger(filePrefix) > 15 $browser.set_logger($logger) > 16 end > 17 > 18 def test_a > 19 start > 20 $logger.log("Beginning of test: Figleaves - Go to Homepage") > 21 $logger.log(" Step 1: go to Figleaves.com") > 22 $browser.goto $homepage > 23 if $browser.url == "http://www.figleaves.com/uk/home.asp" > 24 $logger.log(" Result: Passed") > 25 else > 26 $logger.log(" Result: Failed") > 27 end > 28 end > 29 > 30 end > 31 #-----------------------------------------------------------# > > Output; > > >ruby test_firefox_logging.rb > Loaded suite test_firefox_logging > Started > log Starting XMLLogger... > E > Finished in 4.656 seconds. > > 1) Error: > test_a(TC_go_to_homepage): > NoMethodError: undefined method `set_logger' for #<FireWatir::Firefox: > 0x3383cb0> > test_firefox_logging.rb:15:in `start' > test_firefox_logging.rb:19:in `test_a' > > 1 tests, 0 assertions, 0 failures, 1 errors > >Exit code: 1 > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---