Thanks Mick!

I checked  the Xpath with Xpather and its correct. It's weird that this test
used to work and now it's failing.
Also I checked disabling Js and checking that the content tested is present,
and it is. So it's no being loaded through js.

So, I guess, that maybe a change on the Htmlunit version or something is
causing that the evaluation of that xpath is failing. But I am not sure.



2010/4/8 Mick Knutson <[email protected]>

> Get DOMInspector and the XPath add-on for Firefox to verify your XPath. It
> worked miracles for me to get my tests correct.
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://www.baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>
>
>
> On Thu, Apr 8, 2010 at 11:08 AM, Hernan Castagnola 
> <[email protected]>wrote:
>
>> Hi everybody,
>>
>>                      Could it be that StoreXpath command in not working
>> anymore?
>>
>> #Result NameParameterDuration  *  1*[image: ok] *invoke*
>> Go to null
>> Resulting page
>>  saveResponsetrue  urlhttp://www.olx.in/
>> 00:00:08  *  2*
>> [image: Show/Hide all substeps] [image: x] *group*
>> Testing Commercial footer    #ResultNameParameterDuration  *  1*[image:
>> x]
>> Error
>> Page *storeXPath*
>> Verifies that Advertise in Olx exists
>>  propertyelement  xpath//d...@id='footer']/d...@class='links clearfix
>> cb']/d...@class='i1']/d...@class='i2']/d...@class='i3']/a...@href[contains(.,'/affiliation.php')]]
>>
>>
>> Error Message
>>
>> No match for xpath expression <//d...@id='footer']/d...@class='links
>> clearfix
>> cb']/d...@class='i1']/d...@class='i2']/d...@class='i3']/a...@href[contains(.,'/affiliation.php')]]>
>> Current response
>>
>> http://www.olx.in/
>> Location (line: 0)
>>
>>
>>
>> Webtest Version:
>>
>> <repository>
>>             <id>webtest_dependencies_snapshot</id>
>>             <name>WebTest dependencies</name>
>>             <url>http://webtest.canoo.com/webtest/m2-repo-snapshots</url>
>>         </repository>
>>
>>
>>  <dependency>
>>             <groupId>com.canoo.webtest</groupId>
>>             <artifactId>webtest</artifactId>
>>             <version>3.1-SNAPSHOT</version>
>>         </dependency>
>>
>>
>> And then tried with:
>>
>>  <dependency>
>>             <groupId>com.canoo.webtest</groupId>
>>             <artifactId>webtest</artifactId>
>>             <version>3.0</version>
>>         </dependency>
>>
>>
>> Thanks in advance for your help.
>>
>
>

Reply via email to