0 votes
1 view
in Devops and Agile by (21.3k points)

This error is only with Chrome and nothing else. Error is:

"org.openqa.selenium.WebDriverException: Element is not clickable at point (411, 675). Other element would receive the click: ..."

The element I want to click is, actually beside the element that is going to receive the click. Neither is this element on top of it nor overlapping it. Any workaround for this?

1 Answer

0 votes
by (52.8k points)

There are 3 possible solutions for your problem which are as follows: 

1. The first thing you can do is use the Actions() method below is the code for the same.

WebElement element = driver.findElement(By("element_path"));

Actions actions = new Actions(driver);

actions.moveToElement(element).click().perform();

2. The second way us to use Waits which will let the page load completely before the click is performed.

driver.manage().timeouts().implicitlywait(15 TimeUnit.seconds)

3. The third and the last thing is an element is not clickable because of a Spinner/Overlay on top of it:

By loadingImage = By.id("loading image ID");

WebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);

wait.until(ExpectedConditions.invisibilityOfElementLocated(loadingImage));

...