I am currently learning the selenium. After filling the form script is unable to click on radio button
Question:
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.
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()
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.
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()