[BUG] launchPersistentContext hanging on "about:blank" [REOPENED]
See original GitHub issueContext:
- Playwright Version: 1.7.1
- Operating System: Mac
- Node.js version: v14.15.1
- Browser: Chromium
Code Snippet
const {chromium} = require('playwright');
(async () => {
const options = {
headless : false,
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
}
const browser = await chromium.launchPersistentContext(`udd1`, options)
var [page] = await browser.pages();
await page.goto("https://www.google.com/");
})();
Describe the bug
Sometimes the browser hangs on “about:blank”. I’ve tested and it seems that if I even console.log(browser), then it doesn’t even log it when this occurs… The only way to get past this is to refresh the page by using CMD + R on my keyboard. I’m unsure why this is happening as it doesn’t occur every time I run my code. It seems as if the browser isn’t even launching as it doesn’t log.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
playwright._impl._api_types.error: browser closed. - You.com
Describe the bug I used this code a few days ago and it worked fine, but when I used it today, I got...
Read more >Releases - CodeceptJS
This release fixes hanging of tests by reducing timeouts for automatic ... browser is closed during test and tests executions is stopped, but...
Read more >Playwright/CHANGELOG and Playwright Releases (Page 3)
#4218 - [BUG] Playwright-chromium (>1.5.0) does not exit properly (hangs) when ... launchPersistentContext() now support videosPath and videoSize option.
Read more >playwright/api.md - UNPKG
102, For certain types of errors Playwright uses specific error classes. ... 164, - Browser application is closed or crashed.
Read more >node.js - playwright firefox.launchPersistentContext timeout
launchPersistentContext ('./browser_data/thread-test', {headless:false,});. I think there is an error on connect browser to playwright step but I ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bb1234cp thank you the repro steps! I was able to debug this to a nasty race condition on our side. Sorry for this taking so long!
Looking forward! Very happy you found the issue😁 Thanks again!