Selenium error

ElementClickInterceptedException: element click intercepted

Selenium found the element and tried to click it, but another element is currently on top of it at that point on the page.

Why this happens

How to fix it

  1. Dismiss or wait out the covering element before clicking
  2. Scroll the element into view first: `((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element)`
  3. Wait for the element to be clickable, not just present: `ExpectedConditions.elementToBeClickable(by)`