Element click intercepted exception is a common exception. An independent utility must be created to handle such exceptions in any professional automation framework. There are multiple ways to handle this exception:
JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);
Sample Code: WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.elementToBeClickable(element))); element.click();
Sample Code: WebElement element = driver.findElement(element locator);
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element); element.click();
Sample Code: WebElement element = driver.findElement(element Locator);
Actions actions = new Actions(driver); actions.moveToElement(element).click().build().perform();
Sample Code : Thread.sleep(10000);