Press "Enter" to skip to content

How to deal with Element is not clickable at point exception

Over the past few weeks, I saw a few people online asking about the same error. ElementClickInterceptedException: Element is not clickable at point exception. There are lots of answers online, but many of them are very different. Some of the suggested solutions work for some people, but not others.

 Element is not clickable at point exception

Element is not clickable at point exception is self-explanatory. It means that the element that you’re trying to click on can’t be clicked at that particular point. It usually happens when you locate an element and try to execute a click action on it. One of the most common causes, why this error happens, are overlapping elements. Something on the page hides your element, that you are trying to click on. But the solution will be different depending on your specific case.

In this video, I decided to reproduce this error. I show why this error happens, and what I usually do to know how to fix this Element is not clickable at point exception.

The code that I use in this video is uploaded to GitHub and you can access it here: https://github.com/dimashyshkin/Element-is-not-clickable-at-point

If you are new to Selenium Webdriver with Java and TestNG, check out my courses. Learn how to create a similar framework, how to use Selenium to automate tests at work, and automate other tedious tasks, outside your QA job.

Hard and Soft Assertions in test automation

One of the rules of good test automation is to write small fast atomic tests. In other words, small tests, that execute only one test case. And usually, one test case should have only one verification. However, the exception is when we make a few verifications without additional test steps in between verifications and they do not depend on each other (can be executed in any order).

Lets look at Test case 1: Positive LogIn test on our Practice Test Login page.

  1. Open page: https://practicetestautomation.com/practice-test-login/
  2. Type username student into the [Username field]
  3. Type password Password123 into the [Password field]
  4. Puch [Submit button]
  5. Verify new page URL contains practicetestautomation.com/logged-in-successfully/
  6. A new page should contain expected text (‘Congratulations’ or ‘successfully logged in’)
  7. Verify button [Log out] is displayed on the new page

Steps 5, 6, and 7 are verifications, and they do not depend on each other. As a result, we can execute these verifications in any order.

In order to execute all three verifications without failing tests, we can use soft assertions instead of hard assertions.

How to find cheap flights with Selenium to save time

Flight search can be a long boring task, it may take hours to manually search for cheap flights. So why not automate it?

Selenium is not just a test automation tool. It’s an automation tool, browser automation. Even if you are not a test automation engineer, you still can benefit from Selenium.

Besides using Selenium at work, to automate web tests, I used it a few times to automate other tasks. I used it to automate job search, so I could execute more job searches every day when I was looking for one. And more recently, I created a project, to automate flights search on Expedia.

I’ve used this framework for years, to save money on flights, and now want to share it with everyone, teach you guys how to use it, so you can also search for cheap flights using Selenium.

I recorded a video and uploaded it to YouTube, to show how to download the framework, and how to use it.

Best Books For Software Testers

People often ask me, what are the best books I can recommend to read for software testers and test automation engineers.

Usually, I say that the best way to become a good QA and Test Automation engineer is not reading a book, but instead practicing and doing it. That’s why all my test automation courses are hands-on, with minimum theory.

However, it never hurts to add some theory, if it can benefit you. In this post, I will not bore you with “Top 10” books for software testers. I will recommend just two books: one on Software Testing, and another on Test Automation. Just two that will be enough to become a good Software QA and Test Automation Engineer.

Stop automating everything with Selenium

You learned Selenium WebDriver. Automated a few tests, then a few more and more. Also, you learned some advanced tricks, strategies. You are becoming more confident in using it. It feels like there is no test that you can’t automate.
All positive test cases for the regression test suite are automated. You added negative tests. You want to automate everything with Selenium because now you know how to do that.

STOP!

Selenium WebDriver is a tool for automating Web UI tests. Not everything should be automated using Selenium. Let me show you few test cases, where it’s better NOT TO USE Selenium WebDriver, even though it’s possible to do so.

DevOps 101 for Testers

Get started with CI/CD

Have you ever wondered what Is DevOps? Also, do you know, how testers can be part of the DevOps?

On November 20, Jeff Fudge was teaching Tampa QA Meetup attendees DevOps 101! Its definition & meaning, DevOps architecture & its components, different DevOps tools, its culture & processes.

Postman RestAPI Testing

Testing Rest API with Postman and JavaScript

Postman is one of the most popular tools used in API testing. It is free and available as Mac, Windows, and Linux native apps, as well as a Chrome extension.

On October 24, 2019, my good friend, Ivan Shmatok, who works for Experian, spoke at the local meetup in Tampa, Florida. He was sharing his experience automating RestAPI tests using Postman and JavaScript.

Here is a video from his presentation.

Selenium WebDriver and Browser alerts

Work with browser alerts using Selenium

Browser alerts may be annoying for test automation beginners. The alert box takes the focus away from the current window and forces the browser to read the message. But Selenium WebDriver has an easy way to work with different types of browser alerts.

Learn a few different types of alerts and how to handle them with Selenium WebDriver in this video.

Checkboxes and radio buttons with Selenium

Work with checkboxes and radio buttons using Selenium WebDriver

Checkboxes and radio buttons are elements that present on almost every website. That’s why every test automation engineer should know how to work with them. Checking checkboxes or selecting and radio buttons is easy with Selenium WebDriver.

In this short Selenium WebDriver tutorial, you will learn a few very important things. How to work with checkboxes and radio buttons. And how to verify, if the checkbox or radio button is already selected

Why XPath Locator strategy?

XPath locator strategy is not scary and not hard to learn

XML Path Language or XPath is a query language for selecting nodes from an XML document. Also, XPath can be used as a Selenium locator strategy.

In September 2019 I spoke at the local meetup in Tampa, Florida.

I shared my experience working with XPath. I talked about Xpath locators, about myths that surround them and why everyone should try using XPath.

SUBSCRIBE AND GET FREE XPATH CHEAT SHEET!

We don’t spam! Read our privacy policy for more info.