Hallo Christoph,

what about
<verifyXPath xpath="//[EMAIL PROTECTED]'userListForm']//a[text() = '14615']/>

you can safely avoid //[EMAIL PROTECTED]'content'] (except if you want to test
that the form is located in this div, but in this case I would use an
extra step for that to have better error messages)

Marc.
-- 
Blog: http://mguillem.wordpress.com


[EMAIL PROTECTED] wrote:
> Hello everybody (again ;)),
> 
> I now have a question about the behaviour of the verifyXPath tag. I want
> to check whether a certain link is on a given position within the page.
> 
> To do so, I use this Xpath expression:
> <verifyXPath xpath="//[EMAIL PROTECTED]'content']//[EMAIL 
> PROTECTED]'userListForm']//a"
> text="14615"/>
> 
> The Xpath explorer hits this node, but there are multiple nodes hit, and
> the given text is not in the first one. Since the number of nodes hit by
> this query can change, I can not select a fixed number (a[3] for
> example).
> 
> Is there a way to do this match as precise as possible? I know I can use
> verifyText on the whole page, but this is not very useful here.
> 
> Thanks and regards,
>  Christoph

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to