I am trying to select the radio button "Hitter". Could anyone help? I've tried a lot of different things, but keep getting "Message: element not visible".
Thanks!
There are multiple ways to locate the radio input
, here is the one using find_element_by_id()
:
radio = driver.find_element_by_id("ContentPlaceHolder1_HitterRadioButton")
radio.click()
Or, if you have problems with this approach, you can simulate a click via javascript:
radio = driver.find_element_by_id("ContentPlaceHolder1_HitterRadioButton")
driver.execute_script("arguments[0].click();", radio)
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