How to select radio button with Selenium and Python -


i trying select radio button "hitter". help? i've tried lot of different things, keep getting "message: element not visible".

thanks!

enter image description here

there multiple ways locate radio input, here 1 using find_element_by_id():

radio = driver.find_element_by_id("contentplaceholder1_hitterradiobutton") radio.click() 

or, if have problems approach, can simulate click via javascript:

radio = driver.find_element_by_id("contentplaceholder1_hitterradiobutton") driver.execute_script("arguments[0].click();", radio) 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -