>From watir.rb:

#  The ways that are available to identify an html object depend upon the
object type, but include
#   :id           used for an object that has an ID attribute -- this is the
best way!
#   :name         used for an object that has a name attribute. 
#   :value        value of text fields, captions of buttons 
#   :index        finds the nth object of the specified type - eg
button(:index , 2) finds the second button. This is 1 based. <br>
#   :beforeText   finds the object immeditaley before the specified text.
Doesnt work if the text is in a table cell
#   :afterText    finds the object immeditaley after the specified text.
Doesnt work if the text is in a table cell

You can use src:

ie.image(:src, 'image_src').click

Zeljko
________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neumann, Carsten -
ENCOWAY
Sent: Wednesday, August 03, 2005 11:25 AM
To: [email protected]
Subject: [Wtr-general] identify image links by their url?





How can I click on an image-link using watir, if two images have the same
"alt"-text? Can I use their url?


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

Reply via email to