Element is not clickable at point | Selenium Forum
M
Posted on 29/10/2015
Hi
I some times get the element is not clickable at point error, could someone help me please...
The error is as follows : unknown error: Element is not clickable at point (XXX, XXX). Other element would receive the click:

Thanks

M
Replied on 30/10/2015

This is caused by following 2 types:

1.The element is not visible to click.

Use Actions or JavascriptExecutor for making it to click.

By Actions:

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

Actions actions = new Actions(driver);

actions.moveToElement(element).click().perform():
By JavascriptExecutor:

JavascriptExecutor jse = (JavascriptExecutor)driver;

jse.executeScript("scroll(250, 0)"); // if the element is on top.

jse.executeScript("scroll(0, 250)"); // if the element is on bottom.
or

JavascriptExecutor jse = (JavascriptExecutor)driver;

jse.executeScript("arguments[0].scrollIntoView()", Webelement);
Then click on the element.

2.The page is getting refreshed before it is clicking the element.

For this, make the page to wait for few seconds.