[Solved-5 Solutions] Debugging “Element is not clickable at point” error
Error Description:
The full error message reads:
- "org.openqa.selenium.WebDriverException: Element is not clickable at point (411, 675). Other element would receive the click: ..."
- The element that 'would receive the click' is to the side of the element in question, not on top of it and not overlapping it, not moving around the page.
Solution 1:
- The element is not visible to click.
- Use Actions or JavascriptExecutor for making it to click.
By Actions:
By JavascriptExecutor:
or
Then click on the element.
Solution 2:
- The page is getting refreshed before it is clicking the element.
- For this, make the page to wait for few seconds.
Solution 3:
- The element is clickable but there is a spinner/overlay on top of it
The below code will wait until the overlay disppears
Then click on the element.
Solution 4:
You can also use JavaScript click and scrolling would be not required then.
Solution 5:
Use this: