Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. QA Testing
  3. Question
QA Testing

How should I resolve this error - elementclickinterceptedexception?

Asked by Anisha Dalal May 6, 2022 602 views 1 answer
Share

About this question

CONSOLE ERROR :

Message: element click intercepted: Element 
..
is not clickable at point (937, 293). Other element would receive the click: <body data-anm=".anm" class="">...</body>   (Session info: chrome=88.0.4324.104)

I am clicking on the button but when I come to the button it did not click on it and showing an error. I have also changed it by XPath css but it is not working. am facing this problem in selenium python 

script : import time from selenium import webdriver


driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe")
driver.get("https://aujtravels.com/breeo-canada/register")
driver.find_element_by_xpath("//h4[contains(text(),'Student')]").click()
time.sleep(2)
driver.find_element_by_xpath("//div[@data-id='1']").click()
driver.find_element_by_id("first_name").send_keys("a")
driver.find_element_by_id("last_name").send_keys("b")
driver.find_element_by_id("email").send_keys("hr@gmail.com")
time.sleep(2)
driver.execute_script(" window.scrollBy(0, 350);")
time.sleep(3)
driver.find_element_by_css_selector("div[data-id='2']").click()

Your answer

1 Answer

More QA Testing discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest QA Testing Blogs

Guides, tips and career advice on QA Testing from JanBask experts.