I have a page with the following snippet in the HTML:
...
<tbody id="c_scopePane4_tbody">
<tr id="c_scopePane4_tr_header">
...
</tr>
</tbody>
...
Now I'm trying to specify the <tr>
tag with an XPath expression from within Selenium. Here's what I try:
//tr[@id='c_scopePane4_tr_header']
This tells me
[error] locator not found: //tr[@id='c_scopePane4_tr_header'], error = Error:
Element //tr[@id='c_scopePane4_tr_header'] not found
But if I change the XPath expression to:
//*[@id='c_scopePane4_tr_header']
...then it works. What gives?