[Wtr-general] how to distinguish among links with the same name

Paul Carvalho tester.paul at gmail.com
Wed Mar 8 17:57:12 EST 2006


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="javascript:__doPostBack('_editTemplate$_matter$_status$hiddenButton','')"></A>

<a id="_editTemplate__matter__status__ctl2_anchor" class="JavascriptLink"
onclick="AddNewCode_42()">Add New Code</a>
----


(BTW, please reply to her, not me.  Although I am interested in the answer
too.)

Cheers.  Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060308/a3358bfe/attachment.html 


More information about the Wtr-general mailing list