Getting this error Element is not clickable at point

+1 vote

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 recieve the click. Neither is this element on top of it nor overlapping it. Any work around for this?

Announcement! Career Guide 2019 is out now. Explore careers to become a Big Data Developer or Architect!

Apr 21, 2018 in Selenium by kappa3010
• 2,090 points
83,186 views

5 answers to this question.

+1 vote

There are 3 possible solutions for this:
1. Use Actions() method

WebElement element = driver.findElement(By("element_path"));
Actions actions = new Actions(driver);
actions.moveToElement(element).click().perform();

2. Use Waits to let the page load completely before the click is performed

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

3. The 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));

For details, You can even check out Selenium concepts with the Selenium Testing Course.

answered Apr 21, 2018 by king_kenny
• 3,710 points
In Data driven framework while selecting data picker above info helped me a lot.

Thank you
Thanks got some useful information, which indeed helped me to run my script
Thanks a lot. Saved a lot of my time.
Do upvote the answer in case you found it helpful!
0 votes
WebElement element=driver.findelement(By.Xpath("your xpath"));

Point p= element.getLocation();

Actions actions = new Actions(driver);

actions.moveToElement(element).movebyoffset(p.x,p.y).click().perform();
answered Feb 22, 2019 by Shalini Karre
Thanks !!! worked..
using python:
element = self.get_element_by_classname(<element's class name>)
actions = ActionChains(self.driver)
actions.move_to_element(element).perform()
actions.click().perform()
Worked! Thank you!
0 votes
WebElement element = driver.findElement(By("element_path"));
Actions actions = new Actions(driver);
actions.moveToElement(element).click().perform();
answered Sep 3, 2020 by Sri
• 3,190 points
0 votes

Other element would receive the click'. This happens when the element is loaded into the DOM, but the position is not fixed on the UI. There can be some other divs or images or ads that are not loaded completely. And ChromeDriver always tries to click the middle of the element.

answered Dec 15, 2020 by Gitika
• 65,770 points
0 votes

The reason for the element is not clickable at point(x,y) exception. It mostly happens in Chrome so if you are mostly working with Firefox or IE then you will not be getting this exception. Chrome always click in the middle of Element. Sometimes you will get this exception due to Sync issue also.

Another cloud be:

This is caused by following 3 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.

3. The element is clickable but there is a spinner/overlay on top of it

The below code will wait until the overlay disppears

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

WebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);

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

Then click on the element.

answered Dec 15, 2020 by Roshni
• 10,480 points

Related Questions In Selenium

0 votes
1 answer

What is the actual conflict while performing click() on web element, and getting an error like element is not clickable at point(x,y)?

Hey @sastry, the error Element is not clickable ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 59,230 points
3,532 views
0 votes
1 answer

Selenium-Debugging Error: Element is not clickable at point (X,Y)

Another element is covering the element you ...READ MORE

answered Jul 2, 2018 in Selenium by Samarpit
• 5,910 points
8,946 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,684 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,148 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,226 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,879 views
+1 vote
2 answers
0 votes
1 answer

Selenium Exception: Element is not visible

Finding the element before locating the one ...READ MORE

answered May 7, 2018 in Selenium by king_kenny
• 3,710 points
7,246 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP