I do use this for the buttons, but it does not work for the links whose id is in the anchor form:

<a id="_editTemplate__matter__status__ctl2_anchor" class="_javascript_Link" New Code</a>

Thanks

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Wednesday, March 08, 2006 11:16 PM
To: [email protected]
Subject: Re: [Wtr-general] how to distinguish among links with the same name

 

ie.link(:id, "_editTemplate__matter_status_hiddenButton").click

On 3/8/06, Paul Carvalho <[EMAIL PROTECTED] > wrote:

Regina sent me an email to let me know that the following code allowed her to click one of the desired links:

> ie.table(:index, 32)[1][2].link(:index, 2).click

However, given the number of tables in the page, she was wondering if there was an alternate way to click one of the links based on the anchor id.  It's a hidden _javascript_ Link, so I don't know how to do this.  Does anyone have any suggestions?

Here is the HTML code snippet again for the link she wants to click:
----
<A id=_editTemplate__matter__status_hiddenButton style="VISIBILITY: hidden" href=""

<a id="_editTemplate__matter__status__ctl2_anchor" class="_javascript_Link" New Code</a>

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006

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

Reply via email to