The error “Element X is not clickable at point. Other element would receive the click:” usually means that there is another element in the way or you are unable to reach to the element.

You can use this as solution:

WebDriver driver = login.getDriver();
WebElement element = driver.findElement(By.linkText("Tehingud"));
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.(element));
((JavaScriptExecutor)driver).executeScript("arguments[0].click()", element);

but it will always click the element even if it disabled. Most of the software testing company avoid the use of java script syntax.

To reach to the element you want to click either you can scroll to that particular element or you can use the below function. Hopefully it will work.

wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText("Tehingud")));
WebElement ele = wait.until(ExpectedConditions.elementToBeClickable(By.linkText("Tehingud")));
Actions builder = new Actions(driver);
Action mouseOverHome = builder
                        .moveToElement(ele)
                        .build().perform().click();



Source link https://sqa.stackexchange.com/questions/26340/visibilityofelementlocated-is-not-

LEAVE A REPLY

Please enter your comment!
Please enter your name here