[Webtest] Targeting a link
Marc Guillemot
webtest@lists.canoo.com
Tue, 11 Oct 2005 10:45:00 +0200
Salut,
try something like
<clickElement xpath="//td[text()='COMPANY45']/following-sibling::td/a[1]"/>
Marc.
Richard HALLIER wrote:
> Hi all,
>
> I've many problems to solve the following case :
>
> <table id="companiesList">
> <tr>
> <th>Company</th>
> <th>Actions</th>
> </tr>
> ...
> <tr class="odd">
> <td>COMPANY45</td>
> <td><a href="editCompany.html?company=3">Edit</a> <a
> href="removeCompany.html?company=3">Remove</a></td>
> </tr>
> ...
> </table>
>
> The list of companies is dynamic but I know the name of the company :
> COMPANY45, how can I click on the related EDIT link ?
>
> I know it's maybe pretty trivial but I cant find the solution in the canoo
> webtest tags ...
> Thank you for your help.
>
> Richard
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>