xpath for selecting a textbox by it's labels content


/ Published in: Other
Save to your folder(s)

where #{label} will be replaced with the labelcontent you are looking for


Copy this code and paste it in your HTML
  1. //input[@name=//label[normalize-space()='#{label}']/@for]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.