[Webtest] verifyXPath fails on R_882
Denis N. Antonioli
webtest@lists.canoo.com
Fri, 24 Jun 2005 15:44:53 +0200
Hi Tim
I tried to reproduce your bug with following minimal html page:
<html><body>
<table>
<tr><td>1.1</td><td>1.2</td><td>1.3</td></tr>
<tr><td>2.1</td><td>2.2</td><td>2.3</td></tr>
</table>
</body></html>
And the parameters
xpath = "//tr[td='2.1'][td='2.1']/td[3]"
text = "2.3"
To no avail, the it doesn't break.
How does your html page differ from the simple version I'm using?
Best
dna
On 24 juin 05, at 01:59, Tim Miller wrote:
> Any idea why verifyXPath does not work when moving from R_825 to
> R_882? All of my verifyXPath steps now fail. The only thing that
> changed was the WebTest version. Below is one sample step.
>
>
>
> <verifyXPath description="Check for Product Description in table row"
>
> xpath="//tr[td='${alert.ord.line.num}'][td='${alert.prod.id}']/td
> [3]"
>
> text="${alert.prod.desc}" />
>
>
>
>
>
> Output TestResultOverview.html:
>
>
>
> com.canoo.webtest.engine.StepFailedException: xpath test: //tr
> [td='76071-1'][td='76071']/td[3] evaluates to: , expected value is:
> Prestall Ap 100mg, Step: VerifyXPath at C:\tools\WebTestSuite\gm-
> scenario\scenario-867-852-001\VerifySecondPurchaseOrderTest.xml:38:
> with (text="Prestall Ap 100mg", description="Check for Product
> Description in table row", xpath="//tr[td='76071-1'][td='76071']/td
> [3]", stepType="verifyXPath")
--
I have no respect for a man who can only spell a word one way.
-- Mark Twain