I have 2 buttons with the same value and class, they are identical.
<input class="button" value="Ir" type="submit">
I want to click the second one, that it is in <div class="smallfont">
How can i do that with python Selenium? Thanks ;D
INPUT CODE <------- IMAGE
You can grab references to both elements and just click the second one.
buttons = driver.find_elements_by_css_selector("input.button");
buttons[2].click()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With