Recent task of me is to make the Selenium tests reliable. Functional tests have the following drawback:

  • Update of tests are required when DOM changes
  • Selenium work differently when you use different web drivers
           Eg: A checkbox is visible when you use Firefox, but hidden in Google driver
  • Depending on how the web page is constructed, you may get inconsistent behavior with the tests.
          Eg: Element is clickable now but not when you run it again
In my previous post, I talked about the “Stale element exception” which we have to find some other creative ways to get around. Please note that there are multiple ways to get around that problem which I will share with everybody in my future post.
Today, I am going to talk about a specific problem I have when using the Google Driver –
WebDriverException: Element is not clickable at point (x, y). Other element would receive the click
The solution is:
Instead of using the usual Click method:


We use the Actions method:

IWenElement element=driver.FindElement(By.Id(“id”));

Actions actions = new Actions (driver);