Starting at the topmost delete button, count them until you get to the desired button.

 

$ie.button(:index,3).click --  would click the third from the top delete button on the page.

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of VIKASH KUMAR
Sent: Tuesday, July 18, 2006 4:06 AM
To: [email protected]
Subject: [Wtr-general] Getting problem in calling click event where variousbuttons have the same name

 

Sir,

In my web page there are lots of buttons having same name, they are called using _javascript. They are as follows:

 

 

<button type="button" name="delete" id="delete" 'BF');">Delete</button>

 

<button type="button" name="delete" id="delete" 'BI');">Delete</button>
   
<button type="button" name="delete" id="delete" 'KH');">Delete</button>
   

I am unable to call the click event using ie.button(:name,'delete').click as because all the buttons have same name.

 

Please send me the solution for this.

Thanks in Advance

 

With Regards

Vikash Kumar

 


Find out what India is talking about on Yahoo! Answers India.
Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!

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

Reply via email to