HTML that you provided is not valid. Three tags have the same id. Ids should be unique.

Can you ask your developer to change

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

to

<button id="KH" 'KH');">Delete</button>

In short, change id="delete" to id="KH".

Then you could access it like this

ie.button(:id, "KH").click

On 7/19/06, VIKASH KUMAR <[EMAIL PROTECTED]> wrote:
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>
   
ie.button(:index,3).click , this works great if we know the index, but if someone just doesn't know the index, knows only the parameter which is ('delete', 'KH'), then what is the solution for it?
 
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


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

Reply via email to