Title: How to click a button that has no id or name attribute

You can just click the button by using the value attribute:

 

browser.button(:value, “Login”).click;

 

That should work just fine.

 

Sergio

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, Bernd
Sent: Friday, January 20, 2006 5:02 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] How to click a button that has no id or name attribute

 

 

<input class=rec_butt type=submit value=Login >

I have this input button that I like to click. Unfortunate it has not id or name attribute attached to it.
How can I click the button?

--Bernd

 

***************************************
Bernd Paatsch
Software Quality Assurance Engineer
Active Voice LLC
e-mail:  [EMAIL PROTECTED]
Phone:  (206) 441-4700 x1026

 

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

Reply via email to