Hi, there is no single XPath expression for an HTML element: there are tons of XPath that can match the same node. Which one is the "right" one for your test depends from your test case.
There are some plugins for instance for Firefox that allow to generate an XPath (I don't currently remember the name) for a node, but remember that they can't do a great job because they don't know why you want to target a particular node. Therefore the result delivered by such a tool should only be taken as a basis. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Hitesh Gupta wrote: > Hi, > > Is there any way in Canoo webtest to fetch the xPath of an element of HTML. > > I am having a table element in my html page and there is a particular > text in one cell, that cells are populated dynamically i.e. the text can > be present in any of the cell. > > So I want to find the xPath of that text element. Is there any way to > determine the xpath of the text by canoo webtest. > > Hitesh.. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

