Here you  go

<input type="submit" name="ctl00$xxxxxx$bt_next" value="Next" onclick="if
(typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate() ==
false) { return false; }} this.value = 'Next';this.disabled =
true;__doPostBack('ctl00$xxxxxxx$bt_next','');" id="ctl00_xxxxxxxx_bt_next"
title="Proceed to the next step of your application"
class="formbuttonproceed" />

On 4/25/07, Željko Filipin <[EMAIL PROTECTED]> wrote:

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




--
In theory, there is no difference between theory and practice; In practice,
there is.
   Chuck Reid
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to