1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Why does execution not continue past await textbox.click() when the button update the...

Discussão em 'Python' iniciado por Stack, Setembro 17, 2025.

  1. Stack

    Stack Membro Participativo

    I want to test the "connection" button on a webpage using Playwright. When the button is clicked, the url of the page is updated. Here's my code:

    tb = tbr.page.get_by_role("button", name="connection")
    print("before click")
    await tb.click()
    print("after click")


    The button is definitely being clicked, but the "after click" message never appears in the console. It looks like the code execution stops (as if Playwright is still waiting for something after the click).

    Why does execution not continue past await textbox.click() when the button update the url of page which called it?

    Continue reading...

Compartilhe esta Página