Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (47.6k 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 (106k 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));

Browse Categories

...