question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Element is not clickable at point (x, y) Other element would receive the click' after updating chrome browser and chrome driver to latest version

See original GitHub issue

Bug report

  • Node Version: 6.11.2
  • Protractor Version: 5.1.2
  • Browser(s): Chrome 62.0.3202.94 (Official Build) (64-bit)
  • Chrome driver version: 2.33.506120
  • Operating System and Version: Windows NT 6.3.9600 x86_64
  • A relevant example test
var nextButton = element(by.buttonText('Next'));
browser.wait(EC.elementToBeClickable(nextButton), config.minWaitTime)
.then(function() {
	nextButton.click();
})
.catch(function(waitError){
	console.log('Error occured : ', waitError);
});

Here nextButton element is present at the bottom of the screen and it is invisible (i.e. it is not within Viewport) but enabled, clickable and not having any overlay

  • Output from running the test
Failed: unknown error: Element <button type="button" class="primary active">...</button> is not clickable at point (989, 603). Other element would receive the click: <div class="navItems">...</div>
(Session info: chrome=62.0.3202.94)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 6.3.9600 x86_64)
  • Observation In previous versions of chrome browser v61.0 and chrome driver v2.32 above script was working fine by auto scrolling to the desired element and then click it. Now it is breaking in the latest environment as mentioned at the top.

  • Temporary workaround Using scrollIntoView of the element and then click like -

browser.executeScript("arguments[0].scrollIntoView();", nextButton.getWebElement());
nextButton.click(); 

This solution works but I will need to make changes in each spec file and for each element. If there lots of element on the page the this solution is not feasible.

  • My Guess As per release notes after fixing issue 2017 the previous issue 1852 might be broken.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
FreshQacommented, Nov 15, 2017

Instead of a direct click, use the actions class:

browser.actions().mouseMove(nextButton).click().perform();

2reactions
hermanfransencommented, Dec 18, 2018

@FreshQa @ameetdhage

browser.actions().mouseMove(nextButton).click().perform();

This didn’t work for me either, in two steps it did:

browser.actions().mouseMove(nextButton).perform();
browser.actions().click().perform();

In other situations is used:

browser.executeScript(`
  const button = document.querySelector('button');
  button.click();
`);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging "Element is not clickable at point" error
This is caused by following 3 types: 1.The element is not visible to click. Use Actions or JavascriptExecutor for making it to click....
Read more >
How to Fix Selenium's "Element Is Not Clickable at Point"
The error “element is not clickable at point” is self-explanatory. It means that the element that you're trying to click on can't be...
Read more >
How To Deal With "Element is not clickable at point” Exception ...
The exception “Element is not clickable at point” usually occurs when the WebElement we want to interact with (or click) is not clickable...
Read more >
Element is not clickable at point SeleniumWebdriverException
Element is not clickable at point SeleniumWebdriverException ... This issue comes only when working with chrome driver as the chrome browsers uses point...
Read more >
Selenium - Element is not clickable at point - Tutorialspoint
We can get the error - Element is not clickable at point while trying to click a link in Selenium webdriver. This is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found