Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

Explain elementclickinterceptedexception

Asked by Amit Jaisawal Feb 24, 2022 650 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 change it by XPath css but not working.

am facing this problem in selenium python 


WEBSITE URL: https://aujtravels.com/breeo-canada/register

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 Cyber Security discussions

Learn & Explore

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

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.