all I'm delevoping a web app and I need to find a specific element but I can't find it out with my xpath. This is the html code where I'm trying to find the element
<table>
<tr>
<th class="details">
<label>Name</label>
</th>
<td class="data">
<div id="...">
<div id="..."></div>
<input id="..." type="text">
</div>
</td>
</tr>
..........
</table>
I successfully found it but when I noticed that the ids are autogenerated I got stuck. I tried to solve this problem finding the label which contains the text 'Name' and then finding the siblings but nothing. This is my xpath:
//*[text()[contains(.,'Name')]]/../following-sibling::td
//input[@type='text']and you misspelledNameasNomein your xpath.