To avoid this kind of problems (to some extend) you can use properties
and switch the places where you use ' and ":

<property name="myText" value="Missing 867 Sales - Positive 844's with
Partial Matches "/>

<verifyXPath xpath='//tr[td/span="${myText}"]/td[2]/span' text="$800.00"/>


Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Olivia Chan wrote:
> I am trying to verify some text using verifyXPath. However, the xpath
> contains a single quote and I don't know how to "escape" it properly...
> 
> I have tried using just ' and &apos; but it doesn't work
> 
> <verifyXPath xpath="//tr[td/span='Missing 867 Sales - Positive 844's
> with Partial Matches ']/td[2]/span" text="$800.00"/>
> 
> <verifyXPath xpath="//tr[td/span='Missing 867 Sales - Positive
> 844&apos;s with Partial Matches ']/td[2]/span" text="$800.00"/>
> 
> 
> The html source is
> <tr>
>   <td>
>     <span title="Analysis">Missing 867 Sales - Positive 844's with
> Partial Matches </span>
>   </td>
>   <td>
>     <span title="Value">$800.00</span>
>   </td>
> </tr>
> 
> Any help is really appreciated.
> Olivia
> 



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to