Hi,

     <!-- Check the position and the text of top-level menu item-->
<clickLink xpath="//div/ul/li[contains(@id, 'menu')]...@{level1position}]/a[text()='@{level1}']"/>

here you will have a problem when level1 contains a quote because in this case the XPath expression won't be valid anymore. If " is unlikely to appear, you should be able to use

<clickLink xpath='//div/ul/li[contains(@id, "menu")]...@{level1position}]/a[text()="@{level1}"]'/>

In this case you will have troubles when level1 contains a " and you won't have any problems when it contains a '.


And while the last one above succeeds, the following does not:
<checkMenuItem level1="Rapports" level1position="5" level2="Alertes détection" level2position="1"/>

this is a special feature of WebTest: it detects that "Alertes détection" has been badly translated and doesn't really sound French ;-)

I am *assuming* that this is due to the accented characters, but I cannot confirm that.

It shouldn't. Can you provide the HTML code of the <a> tag?

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

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

Reply via email to