Question re xPath for cell in Ranorex Web Testing Example
Posted: Fri Nov 14, 2014 11:38 am
On http://www.ranorex.com/web-testing-examples/ there is a value of "green" in the third cell of "rows 2".
I can successfully locate that value using the following xPath:
/dom[@caption='Ranorex Test Page']//table[#'simpletable']//td[@innertext='green']
However, I cannot identify that value with the following xPath:
/dom[@caption='Ranorex Test Page']//table[#'simpletable']/tr/td[@innertext='green']
The <td> is a child of a <tr>, so what is wrong with my second xPath?
Thanks!
I can successfully locate that value using the following xPath:
/dom[@caption='Ranorex Test Page']//table[#'simpletable']//td[@innertext='green']
However, I cannot identify that value with the following xPath:
/dom[@caption='Ranorex Test Page']//table[#'simpletable']/tr/td[@innertext='green']
The <td> is a child of a <tr>, so what is wrong with my second xPath?
Thanks!