I'm trying to click on an element using Selenium in Python. When I run the code, I receive the following error message:
ElementClickInterceptedException: element click intercepted: Element ... is not clickable at point (946, 81).
Other element would receive the click:
I am trying to use WebDriverWait to do an explicit wait, but it doesn't seem to be working. I have tried:
a) waiting for my desired element to be clickable:
WebDriverWait(browser.driver, 10).until(
EC.element_to_be_clickable((By.ID, "ShadowModeAnchor.adminShadowUser"))
)
b) waiting for the element named in the error message above to go invisible:
WebDriverWait(browser.driver, 10).until(
EC.invisibility_of_element_located((By.XPATH, "//div[@style='background-color: #000; /*needs to be BELOW popup*//*z-index: 3;*/ filter: alpha(opacity=0); opacity:0.0; height: 720px; width: 100%; position: absolute; top: 0px; left: 0px; display: block; '"))
)
In both cases, I get the same error message listed above. Can anyone point out what I'm doing wrong, and how to fix it? Thank you!