[Python] Selenium - Wait until page is fully loaded

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    Using Python w Selenium to retrieve a web page generated by Splunk. The web page contains a table/list which takes a long time to load.

    Upon loading the web page, Splunk provides the web page, except for that table/list. The area where the table should be present, Splunk returns the string 'Waiting for data', as Splunk performs the search query in the background to finish, to the table/list.

    The issue I'm facing is that sometimes Selenium returns a proper table/list, and sometimes content with the string 'Waiting for data'.

    I thought using the driver.implicitly_wait() would fix this issue, but it didn't.

    Q: How can I configure Selenium to wait w proceeding until the string 'Waiting for data' is not present on the web-page. Or how can I configure Selenium until the page is 'fully' loaded.

    Continue reading...

Compartilhe esta Página