[Webtest] Targeting a link

Richard HALLIER webtest@lists.canoo.com
Tue, 11 Oct 2005 11:11:08 +0200


Merci marc,
That was exactly my need !!!!
Thank you.
Richard

-----Message d'origine-----
De : webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]De la part de Marc Guillemot
Envoyé : mardi 11 octobre 2005 10:45
À : webtest@lists.canoo.com
Objet : Re: [Webtest] Targeting a link


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> &nbsp; <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
>

_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest