I am trying to find the first element <th>under the element <table>. The table element is tagged with a specific identifier and is available for localization when I look only at this tag.
But when I try to go a little further and search using XPath below, it returns a null element. '/th[0]'should say: return the first element <th>under the element marked with a specific identifier.
In this example, the id value is populated before the search:
"// * [@ id = '{0}'] / th [0]"
Chris source
share