Use:

clickLinkWithText(String linkText, int index)

clickLinkWithText("Delete", 2)

This will click the 2nd link with the "Delete" as the text.

HTH.

Nick


> -----Original Message-----
> From: Laurent Duperval [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 8:25 AM
> To: [EMAIL PROTECTED]
> Subject: [Jwebunit-users] Selecting a specific link in a table
> 
> 
> Hi,
> 
> I have a table with many rows, where the last column is a 
> link with the 
> text "Delete". I want to click the "Delete" link for a 
> specific row in 
> the table. How do I do that? For example, if I have this table:
> 
> Entry 1 | Delete
> Entry 7 | Delete
> Entry 5 | Delete
> 
> How to I click the link that corresponds to entry 7?
> 
> L
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Jwebunit-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> 


- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to