[Webtest] verifyXPath

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Thu, 14 Dec 2006 13:43:22 +0100


Did you really try with the XPath you show? The error message indicates 
something else ('test' rather than 'test tooltip.').

Marc.

Mark McKeown wrote:
> Hi Guys,
> 
> I have a fragment of html:
> 
> <a title="test tooltip." href="1#">
> 
> which I am trying to verify the XPath of.
> 
> If I use:
> 
> //div[@id='formTable']/form/fieldset[1]/label/a[@href='1#']
> then the XPath verifies ok.
> 
> However if I try:
> 
> //div[@id='formTable']/form/fieldset[1]/label/a[@title='test tooltip.']
> then CANOO reports:
> failed with message "xpath test: 
> //div[@id='formTable']/form/fieldset[1]/label/a[@title='test'] matched 
> no nodes"
> 
> I am using the title attribute to specify a mouse-over tooltip on a 
> piece of text. Are there any restrictions in XPath here which I may not 
> be aware of? Can anyone suggest a solution?
> 
> Thanks in advance,
> Mark
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>