Hi Colin, I could find the cause of the problem: the upper case SPAN tag is seen in uppercase during XPath processing when it should be seen in lower case.
I'm currently investigating why this change has been made in HtmlUnit-2.4. I will commit a hack until end of the week to make it work correctly again in WebTest while using HtmlUnit-2.4. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Colin O'Brien wrote: > Hi Mark, > > Here is the result with the suggested xpath you provided > > _R_1737 returns_ > <storeXPath > property="whatDoIContain" > xpath="//span[contains(text(), 'Subscriber')]/@class" > /> > No match for xpath expression <//span[contains(text(), > 'Subscriber')]/@class> > > _R_1714 returns_ > <storeXPath > property="whatDoIContain" > xpath="//span[contains(text(), 'Subscriber')]/@class" > /> > No match for xpath expression <//span[contains(text(), > 'Subscriber')]/@class> > > So neither release version appear able to resolve the xpath > "//span[contains(text(), 'Subscriber')]/@class", is this what you were > expecting...? > > Kind Regards, > Colin. > > > > > --__--__-- > > Message: 2 > Date: Wed, 04 Feb 2009 09:16:45 +0100 > From: Marc Guillemot <[email protected] <mailto:[email protected]>> > To: [email protected] <mailto:[email protected]> > Subject: Re: [Webtest] Re: R_1714 to R_1737 differences...? > Reply-To: [email protected] <mailto:[email protected]> > Reply-To: Marc Guillemot <[email protected] > <mailto:[email protected]>> > > Hi Colin, > > this is strange. > > What do you get for results for instance with: > //span[contains(text(), 'Subscriber')]/@class > > Cheers, > Marc. > -- > Web: http://www.efficient-webtesting.com > <http://www.efficient-webtesting.com/> > Blog: http://mguillem.wordpress.com <http://mguillem.wordpress.com/> > > Colin O'Brien wrote: > > Hi Mark, > > > > The node isn't matched at all it would appear. I've tried to use > > storeXPath to see what is actually being matched for the node I'm > > searching but the error returned reports that there is no match at all > > for that node... > > > > Below is the actual span element as it appears in the source: > > > > <SPAN class=pagetitle>Items for a Subscriber</SPAN> > > > > Is the fact that "pagetitle" is unquoted likely to cause a problem if > > strict html rules are being applied with the new version of > htmlUnit...? > > > > From WebTest Results: > > > > storeXPath with R_1714 > > property: whatDoIContain > > xpath: //sp...@class='pagetitle']/text() > > => value: Items for a Subscriber > > > > storeXPath with R_1737 > > property: whatDoIContain > > xpath: //sp...@class='pagetitle']/text() > > error: No match for xpath expression > <//sp...@class='pagetitle']/text()> > > > > Best Regards, > > Colin. > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

