[BUG]page.pause() not work. popup a blank window
Closed this issue · 7 comments
System info
- Playwright Version: [v1.40]
- Operating System: [Ubuntu 22.04, macOS 12.63]
- Browser: [Chromium]
- Other info:
Source code
- I provided exact source code that allows reproducing the issue locally.
Link to the GitHub repository with the repro
[https://github.com/your_profile/playwright_issue_title]
or
Test file (self-contained)
from undetected_playwright.async_api import async_playwright, Page
playwright_browser = await async_playwright().start()
browser_context = await playwright_browser["chromium"].launch_persistent_context(
_path,
executable_path="Chromium.app/Contents/MacOS/Chromium",
...)
page = browser_context.pages[0]
...
await page.pause()
...
Steps
- [Run the test]
- [...]
This will pause the page and popup the inspector window.
[Describe expected behavior]
The inspector window is blank
I confirm this bug. Was about creating an issue then I saw this.
You can try rebrowser-patches, it breaks .pause(), too. But! It allows temporarily disabling the patch via env variable, so you can disable it while debug your stuff, and then turn back again on the fly.
Same issue. Playwright Inspector is blank, and can't record when i "page.pause()".
@espeka44 do you use process.env.REBROWSER_PATCHES_RUNTIME_FIX_MODE = '0'
when you want to run it for debugging?
@espeka44 please consider creating a new issue in https://github.com/rebrowser/rebrowser-patches/issues and sharing your code, then I can take a deeper look.