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);
((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.

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

Source link


Please enter your comment!
Please enter your name here