Try using the regular expressions.

ie.link(:name, "/.*Sign in.*/").click

This might work

Bye
Sathya Shankar

Miroslav Rajcic wrote:

>I am having the problem with the link of the following form:
>
><a href="some address"><u>Sign in</u></a>
>
>And it appears that the both lines below can not find the link to click:
>ie.link(:name, "Sign in").click
>ie.link(:name, "<u>Sign in</u>").click
>
>On execution I get error:
>c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1979:in `object_exist_check': Unable
>to
>locate object, using name and <u>Sign in</u>
>(Watir::Exception::UnknownObjectExc
>eption)
>
>Does anyone know how to solve this?
>Link itself is not part of any form, it is placed in a simple table, and I
>am using Watir 1.4.1.
>
>TIA
>
>
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>  
>


-- 
In most parts of the world they drive on the left of the road. In Bangalore we 
drive on what’s left of the road.


Sathya Shankar M G
Software Engineer
Qantom Software
http://www.qantom.com
Ph : 26799269 Xtn. 123
sip : [EMAIL PROTECTED] 


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to