James E Weaver wrote:

Hi,



Ok, so you have to know in advance what the position of the link is.
Hmmm... All right, I'll to make my tests dterministic.



There is another option. The delete link in your table must hava a url
with a parameter that indicates what entry is to be delted. So, you are
generating the delete link. When you build the link, give it an Id that
includes the entry number. Then you can use the clickLink method passing
it the id (entry number in this case). That will work regardless of the
links position in the table.



This is a solution I use in my tests/webapps as well. I think this could go into a faq... Or some best practices document.


Martijn


-------------------------------------------------------
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