Patch for the bug in firewatir where text elements were not being
identified submitted.
http://jira.openqa.org/browse/WTR-266

>2.  Working with links using the link text may be different with
>FireWatir.  For example, my application's login page has a link with
>text "Login".
>the command fox.link(:text, 'Login').click gives the following error:
>Watir::Exception::UnknownObjectException: Unable to locate element,
>using :text, "Login"
>        from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
>firewatir/MozillaBaseElement.rb:967:in `assert_exists'
>        from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
>firewatir/MozillaBaseElement.rb:1125:in `click'
>        from (irb):58
>but using a regex for the link text works - fox.link(:text, /
>Login/).click
>I've used the DOM inspector in Firefox and found that there may be a
>leading and trailing space around the text, so I tried fox.link(:text,
>' Login ').click but that doesn't work either.
>Is this just a difference in working with Firefox versus IE?  Clicking
>on the link using text 'Login' works fine in IE.  I'll keep working on
>this here to see if it's just something strange with our application.
>Yep - here's the login page for our production site:
>https://producer.icat.com/icatsss/Main.startup.do

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to