J'ai une page avec l'extrait suivant dans le code HTML:xPath dans le sélénium - qu'est-ce que je fais mal?
...
<tbody id="c_scopePane4_tbody">
<tr id="c_scopePane4_tr_header">
...
</tr>
</tbody>
...
Maintenant, je suis en train de préciser la balise <tr>
avec une expression XPath à l'intérieur Sélénium. Voici ce que j'essaie:
//tr[@id='c_scopePane4_tr_header']
Cela me dit
[error] locator not found: //tr[@id='c_scopePane4_tr_header'], error = Error:
Element //tr[@id='c_scopePane4_tr_header'] not found
Mais si je change l'expression XPath à:
//*[@id='c_scopePane4_tr_header']
... alors cela fonctionne. Ce qui donne?