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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -