[Webtest] Dynamic links

Stefanie Wilms webtest@lists.canoo.com
Wed, 26 Apr 2006 16:59:34 +0200


Hi,

in one of my tests I need to click on a particular link in a table whose 
first column consists of dynamic links like
<a href="/.../DispatchNewEditTP.do?id=41515">135</a> ?
As it is dynamic I can't use the href to click on that link. If I get 
the number from a message in a dialog like 'New job has been added (No. 
135)' while testing, would it be possible somehow to use the returned 
number '135' to click on the link with that number?

The next problem is that in each row of this table there is another 
dynamic link like
<a href="/.../FillFollowForm.do?followUpFor=41515><img border="0" 
src="/.../images/Funktions_Icons/followform.gif"/></a>
As it is an image I have to click on, there is not even a number I could 
use.

Thanks in advance,
Stefanie Wilms