Cannot submit the code

All my code is working fine, just the ending submit is not working. ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (576, 910). Other element would receive the click:

…


This is the error

Can you please send me that piece of code so that I can look into it.

from selenium import webdriver browser=webdriver.Chrome() browser.get(“https://www.codechef.com/”) username_element = browser.find_element_by_id(“edit-name”) username_element.send_keys(“xysz1234”) password_element = browser.find_element_by_id(“edit-pass”) password_element.send_keys(“Sahilchawla7#”) browser.find_element_by_id(“edit-submit”).click() browser.get(“https://www.codechef.com/submit/TEST”) #browser.find_element_by_id(“edit-submit”).click() browser.find_element_by_id(“edit_area_toggle_checkbox_edit-program”).click() text_element=browser.find_element_by_id(“edit-program”) with open(“25047219.cpp”,“r”) as f: code=f.read() text_element.send_keys(code) browser.find_element_by_id(“edit-submit-1”).click()

The same code is actually working for me .
The error which you have mentioned is occurring either of two reasons -

  1. The element you are using is hidden below other element (which is not the case here)
  2. The button is not visible because the page is not scrolled down.(i.e The button is not visible to the browser at that time so try scrolling the page a bit and when that button is visible in the page then try to execute your line)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.