The error element isn't clickable at point (x, y) can arise from various factors. You can address them by either of the following procedures:
- Try to use Actions Class:
WebElement element = driver.findElement(By.id("navigationPageButton")); Actions actions = new Actions(driver);
2. element not getting clicked because it isn't within Viewport
3. The page is getting refreshed before the element gets clickable.
- In this case, induce ExplicitWait i.e WebDriverWait as mentioned in point
4. element is present within the DOM but not clickable.
- In this case, induce ExplicitWait with ExpectedConditions set to elementToBeClickable for the element to be clickable:
WebDriverWait wait2 = new WebDriverWait(driver, 10);
wait2.until(ExpectedConditions.elementToBeClickable(By.id("navigati new WebDriverWait(driver, 10);
6. Element is present but having permanent Overlay.
WebElement ele = driver.findElement(By.xpath("element_xpath"));
If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium certification online!