[Webtest] (no subject)

Dierk Koenig webtest@lists.canoo.com
Sun, 20 Oct 2002 16:27:19 +0200


Hi Peter,

you currently cannot.

As the clicklink currently does not support the locators like
clickbutton does (index locator would help here) you are bound
to label, alt-attribute or href-substrings. I guess that labels
have to stay the same and because they have preference over the
alt-attribute, inserting alt= doesn't help either.

A dirty trick would be to change the href, i.e. suffix it with
some parameter/value that is to be ignored by your webapp.
you could then use the suffix for telling one from the other.

An additional consideration is about your testing goals.
One would be to test that the link works. That can be
achieved by clicking of either one of the links. A second goal
may be to ensure that the links are identical. Some
advanced use of regex or xpath could help here.

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of peter Chan
> Sent: Samstag, 19. Oktober 2002 12:07
> To: webtest@lists.canoo.com
> Subject: [Webtest] (no subject)
>
>
> hi, in this html file, how can i sure to click in the different row but
> have the same name link "new" or "modify"?
>
> thank you
>
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="60%">
> <a href="ormOrganizationDetail.htm"><img width="11" height="11"
> border="0"
> src="../images/minus.gif"></a><a
> href="ormOrganizationDetail.htm?detail=aaa" target="_blank">company</a>
> </td>
> <td width="40%">
> <a href="ormUpdateOrganization.htm?modify=aaa">modify</a>
> <a href="ormAddOrganization.htm?addNew=ok">new</a>
> </td>
> </tr>
> <tr bgcolor="#CCCCCC">
> <td width="60%">=
> </td>
> <a href="ormUpdateOrganization.htm?modify=aaa">modify</a>
> <a href="ormAddOrganization.htm?addNew=ok">new</a>
> </td>
> </tr>
> </table>
>
> _________________________________________________________________
>  MSN Explorer:  http://explorer.msn.com/lccn/
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>