aarggg, my snippet, it has vanished lets try again, this is it:
The link itself is generated and can only be identified by the link name itself. I do know which link it is not, because that one has an Id. when I set webtest to "webtest.sh -d" debug, I see that the goes to the action of the form, which is an .jspx file. I guess that has something todo with the reason that the tag isnt looking in the first searchloop only whats in the form?! I think xpath is probably the best thing, i'll give it a shot. thanks for the tip. Cheers, Daniel Ettema ---------------------------------------- > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: [Webtest] Clicking a link within a table > Date: Thu, 21 Feb 2008 14:12:42 +0100 > > cool snippet, really clean code! ;-) > > How do you identify the link? XPath is probably the answer as you can > indicates which link matching your criteria should be taken: > > > Cheers, > Marc. > -- > Blog: http://mguillem.wordpress.com > > > Defiant Challenged wrote: >> hello all, >> >> ive been working with webtest for a couple of weeks now and getting more the >> hang of it, but i run into little things that i try to work around with. the >> following is somethinig I do not know how to solve. I searched the arcives a >> little, but I couldn't find, either the right search term or similar topics. >> >> my problem is as follows. >> I have a table within a form. in this table a list of locations is shown, >> but the order could be random. every item in the table is also a link. So I >> want to click one of these links in the table. >> The thing is, in the top of the same page, the same location is displayed, >> also in a link form. >> Ive tried using , but I keep clicking the top link and not the one in the >> table. >> Since the location of the link, that I want to click, could be at any row >> within the table, I cant use the nested option, because it is mandatory to >> specify a row and a column, and I dont know that, because the order is >> random. >> is there any way todo this?? >> is there any way to select a table in general and search in the table >> itself, something similar like selectForm? >> >> this is my snippet >> ... >> >> >> ... >> >> any insight would be welcome. >> >> thanks. >> >> Sincerely, >> >> Daniel Ettema >> _________________________________________________________________ >> Express yourself instantly with MSN Messenger! Download today it's FREE! >> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

