[Python] RobotFramework - Unable to click element using selenium library but Execute...

Discussão em 'Python' iniciado por Stack, Janeiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I am using RobotFramework to automate one application. I am using the Selenium library. For the whole application, selenium keywords Click Button and Click Element throw an error stating ElementClickInterceptedException: Message: element click intercepted: Element **** is not clickable at point (376, 289). Other element would receive the click: <div>...</div>

    I am able to identify the element using ID and it is not under any iframe or shadow-root element. But still I am not able to click on the element. I also tried with adding wait commands to see if it is sync issue but it is not. I tried to click using Action class, mouse move and click etc but did not work.

    I tried to take the screenshot of the element using Capture Element Screenshot and it captures the screenshot of an empty place however, when I try to locate the element in the browser dev tool, it locates it exactly.

    The only working solution I found is to run Execute Javascript keyword to click on the element such as

    Execute Javascript $('#id').click();


    Question: Though I am able to make it work, I am curious to know what could be the issue in the application. I am not able to share the application dom code due to restrictions. Sorry for that

    Continue reading...

Compartilhe esta Página