solidrockguy 1 Posted December 26, 2017 Report Share Posted December 26, 2017 I am trying to use xpath to click on the second element in this code with the type "submit" <form action="somewebsite.com" method="POST" class="manage "> <input name="action" value="renew" type="hidden"> <input name="crypt" value="U2FsdGVkX180NDM4NDQzONe9PvWMxP9Xj6XCcek741gG7yEIlidzCg" type="hidden"> <input name="go" value="renew" class="managebtn" type="submit"> </form> I tried this x://input[@value=renew]//@type but it finds both of these - hidden and submit. Any way to limit it to just the one with type="submit"? Quote Link to post Share on other sites
stanf 43 Posted December 29, 2017 Report Share Posted December 29, 2017 x:(//input[@value=renew]//@type)[2] Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.