[Wtr-general] Getting problem in calling click event where variousbuttons have the same name
Cain, Mark
Mark_Cain at RL.gov
Tue Jul 18 10:13:12 EDT 2006
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: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of VIKASH KUMAR
Sent: Tuesday, July 18, 2006 4:06 AM
To: wtr-general at rubyforge.org
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"
onfiltered="performAction('delete', 'BF');">Delete</button>
<button type="button" name="delete" id="delete"
onfiltered="performAction('delete', 'BI');">Delete</button>
<button type="button" name="delete" id="delete"
onfiltered="performAction('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.
<http://us.rd.yahoo.com/mail/in/mailanswersshare/*http:/in.answers.yahoo
.com/>
Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!
<http://us.rd.yahoo.com/mail/in/mailmessenger/*http:/in.beta.messenger.y
ahoo.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060718/effbb77a/attachment.html
More information about the Wtr-general
mailing list