I have the following method in a class:

 def getCurrentUrl

        u = @browser.url();     #<----This is line 241
        return u;

 end # def getCurrentUrl

This gets me the following:

./HSSession.rb:241:in `getCurrentUrl': undefined method `url' for
#<Watir::Safari:0x118c990> (NoMethodError)
        from ./UnitTest_HSSession.rb:19:in `initialize'
        from run_unit_tests.rb:20:in `new'
        from run_unit_tests.rb:20

I have several other "wrapper methods" that are constructed
identically that *do* work; for instance, the following works:

 def getTitle

        t = @browser.title();
        return t;

 end # def getTitle

Why does that one work and not the call to url? That method is listed
in the documentation!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to