enter image description here

How can I resolve this issue? I post HTML code and exception

  • Can you add a screenshot of the application at the moment of the exception? And your code?
    – FDM
    May 26 '17 at 10:16
  • Add which error you caught after your tests execution. May 26 '17 at 12:24
  • Please show us your actual test automation code May 26 '17 at 16:36
  • Actions actions = new Actions(driver); actions.moveToElement(driver.findElement(By.xpath("html/body/div[1]/div/section[2]/form/div/div[2]/div/div[5]/input[2]"))).click().build().perform();
    – Sarfiya
    May 29 '17 at 4:06
  • This is my automation code
    – Sarfiya
    May 29 '17 at 4:06

Selenium is telling you that another element is overlaying the one you want to click on. Check the screenshot, identify what is covering it. You may need to add some other interaction to uncover your element.


I get around this by clicking via JavaScript. Here is my code in C#:

((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].click()", element);

Try using a find on the element first.
You could also try adding an explicit wait for the element.

See if those help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.