我有一页,上面有以下几页:
...
<tbody id="c_scopePane4_tbody">
<tr id="c_scopePane4_tr_header">
...
</tr>
</tbody>
...
现在,Im试图具体说明<tr>
标签,在Selenium内部有XPath表述。 我在此试图:
//tr[@id= c_scopePane4_tr_header ]
这告诉我
[error] locator not found: //tr[@id= c_scopePane4_tr_header ], error = Error:
Element //tr[@id= c_scopePane4_tr_header ] not found
但是,如果我改用XPath的话说:
//*[@id= c_scopePane4_tr_header ]
......它起作用。 什么?