HTML Code:
<form autocomplete="on" xpath="1">
<div >
<input autocomplete="off" type="text" value="">
<span ></span>
I can write this one : //input[@type='text']
But how to write it in "following sibling" CSS/xpath of the above code?
CodePudding user response:
If you want to fetch input
node based on its sibling, try:
//label[.='Enter Email/Mobile number']/preceding-sibling::input