Open DetachHead opened 2 years ago
Ah yeah the reason for that is that when a Python breakpoint hits, the main event loop halts, then no selector information can be exchanged with Playwright on the Python side itself. Thats why it's stalling.
We usually recommend page.pause() instead, does this work for your use-case?
yeah page.pause
works but then none of the IDE's debugging features work (variable watch, call stack viewer, python console, etc) because the actual code execution isn't being paused
original issue: https://github.com/microsoft/playwright/issues/11668
the solution provided doesn't work unless you are using
@playwright/test
with nodejs - see https://github.com/microsoft/playwright/issues/11668#issuecomment-1067483802so this is still a problem when using playwright with python
Context: