I am currently learning the selenium. After filling the form script is unable to click on radio button

Question:

HTML Code

My code:

driver.find_element(By.ID,"RESULT_RadioButton-7_1").click()

even i tried with Xpath as well but it did not work.

Error :

check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (28, 754). Other element would receive the click: …
(Session info: chrome=111.0.5563.65)

Can anyone please tell me the solution for that error. I have tried so many methods but didn’t work.

Asked By: sri

||

Answers:

Keith’s source code:

element = driver.find_element(By.ID,"RESULT_RadioButton-7_1");
driver.execute_script("arguments[0].click();", element)

sri’s source code (with fixes):

actions = ActionChains(driver) 
source = driver.find_element(By.ID,"RESULT_RadioButton-7_1") 
actions.move_to_element(source).perform() 
Answered By: MacGyver
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.