[Webtest] clicklink task demands exact match if href specified
Dierk Koenig
webtest@lists.canoo.com
Mon, 17 Feb 2003 20:25:50 +0100
oops :-)
Thanx for post.
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Mikael Eriksson
> Sent: Montag, 17. Februar 2003 17:11
> To: webtest@gate.canoo.com
> Subject: [Webtest] clicklink task demands exact match if href specified
>
>
>
>
> Hi all.
>
> The clicklink step seems to work different depending on if the
> href attribute
> is specified or not.
>
> If href is not specified then the label can be a substring of the text in
> the link, but if href is specified, then an exact match is demanded.
>
> Is it a bug or is it intentional?
>
> It seems that this behaviour could be changed by changing
>
> protected boolean followThis (WebLink checkedLink)
> {
> return checkedLink.asText().equals(getLabel())
> &&
> checkedLink.getURLString().indexOf(getHref()) >= 0;
> }
>
> in ClickLink.java to
>
> protected boolean followThis (WebLink checkedLink)
> {
> return checkedLink.asText().indexOf(getLabel()) >= 0
> &&
> checkedLink.getURLString().indexOf(getHref()) >= 0;
> }
>
> Regards
> /Mikael
>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>