Hello,
My execution does clicks on webelement as expected but my test case failing with ElementClickIntercepted error. I have searched entire edureka (https://www.edureka.co/community/47955/selenium-exception-element-clickable-element-receive-click) and StackOverFlow but no luck so far.
I have tried different ways to click the WebElement, below are some of the ways that I tried,
1.
Actions actions = new Actions(driver);
actions.moveToElement(elementActions.getElement(WebElement)).click().build().perform();
2.
JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].click();", WebElement);
3.
driver.findElement(By.xpath("Relative XPath")).click();
4.
WebDriverWait wait3 = new WebDriverWait(driver, 10);
wait3.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("ele_to_inv")));
5.
WebElement ele = driver.findElement(By.xpath("element_xpath"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", ele);
6.
WebDriverWait wait2 = new WebDriverWait(driver, 10);
wait2.until(ExpectedConditions.elementToBeClickable(By.id("navigationPageButton")));
Can anyone please help ?