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!
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
Post a Comment