I want to get input tag if a text is Mr. A text can be Mr or Mrs
<label for="id_gender1" class="top">
<div class="radio" id="uniform-id_gender1">
<span class="checked">
<input type="radio" name="id_gender" id="id_gender1" value="1">
</span>
</div>
Mr.
</label>
</div>
</div>
CodePudding user response:
This should work:
//label[contains(.,'Mr.')]//input