Hi Tunde,

In watir 1.5 I think you can use any attribute of a tag (like class), but I
am not sure about that.

ie.button(:class, "my_class").click

you can also use index

ie.button(:index, 1).click

or html

ie.button(:html, /fancy_attribute='something'/).click

or xpath

ie.button(:xpath , "//[EMAIL PROTECTED]'something']/")

or multiple attributes

ie.button(:name => "my_name", :index => 2 ).click

Enough? :)

If you can post html of that button, it would be easier to answer.

Zeljko
--
ZeljkoFilipin.com
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to