[Python] How to use seleniumbase get_page_source() to retrieve current html after clicking...

Discussão em 'Python' iniciado por Stack, Dezembro 18, 2024.

  1. Stack

    Stack Membro Participativo

    I'm using python seleniumbase to verify a website. After arriving at a certain url, the html is verified using the self.get_page_source() method.

    In the url there is a button to configure the form page. After clicking the button, the screen changes but the url on the browser navigation bar remains the same. Also the self.get_page_source() method is returning the previous html before the button was clicked.

    From the browser, using View Page Source just returns the top level html. When inspecting the button element from the browser, the correct html is returned.

    How can I use seleniumbase to return the current html after the button click?

    Continue reading...

Compartilhe esta Página