[Python] How to automatically start the debugging session in Playwright?

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    I want to automatically start the debugging session instead of having it starting as paused. I found out that adding this code makes it work but it feels hackish to me:

    context.add_init_script("setTimeout(window.__pw_resume, 500)")


    Without the setTimeout, it won't work. Am I doing anything wrong?

    Continue reading...

Compartilhe esta Página