Thanks to whoever posted about XPather. It is really useful in working out 
whether you have your XPath expressions correct. See 
http://xpath.alephzarro.com/

________________________________
From: webtest-ad...@lists.canoo.com [mailto:webtest-ad...@lists.canoo.com] On 
Behalf Of Colin O'Brien
Sent: 08 January 2009 12:23
To: webtest@lists.canoo.com
Subject: [Webtest] R_1714 to R_1737 differences...?

Hi All,

I have two items I'd like to query... One is more of an observation than a 
problem...

1) Has the 'browser' config attribute been added recently i.e. after R1714...? 
I tried to use it with that release but got the error:
    config doesn't support the "browser" attribute
Upgrading to R_1737 corrected this, I'm just curious to know when it was added 
in, or if there is an error in R_1714...

2) Now that I'm using R_1737 I'm seeing some unexpected behaviour with my XPath 
addresses... From the WebTest Downloads page I have read that some changes took 
place after R_1700 regarding how XPath addresses are interpreted, have there 
been more changes to XPath interpretation between R_1714 and R_1737...?

For example, the following address resolves without issue on R_1714 but does 
not match any nodes when used with R_1737
    xpath="//sp...@class='pagetitle'][contains(.,'${report.focus}')]"

Is there something more I need to include in the contains() function to make 
the address stricter or more compliant...? Do I need to use something like
    contains(text(), string)

Any and all help gratefully appreciated, thanks...

Kind Regards,
Colin.

Reply via email to