0

I try to click on a button, but I get this error:

ElementClickInterceptedException: 

    element click intercepted: Element 
      <button class="ogOEj4x-0BpDZWeccJwxx s1vteny2-12 fJWqQW">...</button> 
        is not clickable at point (1108, 559).

    Other element would receive the click: 
      <button class="ogOEj4x-0BpDZWeccJwxx s1vteny2-12 fJWqQW">...</button>

In HTML is only one button with that class.

So what is the point of this error? Can't click on button because it will receive the click?

1 Answer 1

1

Maybe try to use clicking by Actions

WebElement element = driver.findElement(By.id("id"));
Actions actions = new Actions(driver);
actions.moveToElement(element).click().build().perform();
Sign up to request clarification or add additional context in comments.

1 Comment

It works. Thanks. P.S.: Also now work with my code. I'm still confused.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.