medium

ElementClickInterceptedException

The click command could not be completed because another element would receive the click at the target coordinates. A different element is covering the target.

Common Causes

  1. 1Cookie consent banner covering the element
  2. 2Loading overlay or spinner blocking the page
  3. 3Sticky header or footer covering the element
  4. 4Notification popup or toast message in the way
  5. 5Dropdown or tooltip from adjacent element overlapping

How to Fix

Dismiss the blocking element first

// Python
try:
    banner = driver.find_element(By.ID, 'cookie-banner')
    banner.find_element(By.TAG_NAME, 'button').click()
except NoSuchElementException:
    pass

driver.find_element(By.ID, 'target').click()

Close overlays, modals, or banners before interacting with elements underneath.

Use JavaScript click as fallback

// Python
element = driver.find_element(By.ID, 'target')
driver.execute_script('arguments[0].click();', element)

JavaScript click bypasses the intercepted check. Use as a last resort.

How ObserveOne Helps

ObserveOne detects z-index and overlay conflicts across your application and flags interaction blockers.

Start Monitoring Free

Related Errors