[BUG] waiting for firstPageProxy failed
See original GitHub issueContext:
- PlayWright Version: 0.10.0
- Operating System: macOS 10.15.3
- Extra: node 11.15.0
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:
git clone git@github.com:popperjs/popper-core.git
git checkout test/playwright
yarn
JEST_BROWSER=webkit yarn test:functional
Describe the bug
I’m migrating a test suite from Puppeteer to Playwright. The Chromium tests run correctly, like they used to with Puppeteer.
The WebKit tests, though, report this error whenever I run them:
TimeoutError: waiting for firstPageProxy failed: timeout 30000ms exceeded
at Function.waitWithTimeout (node_modules/playwright-core/lib/helper.js:120:30)
at WKBrowser._waitForFirstPageTarget (node_modules/playwright-core/lib/webkit/wkBrowser.js:74:31)
at Function.connect (node_modules/playwright-core/lib/webkit/wkBrowser.js:47:23)
It looks like other people have the same issue: https://stackoverflow.com/questions/59942461/playwright-error-unhandledpromiserejectionwarning-timeouterror-waiting-for-fi
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
UnhandledPromiseRejectionWar...
playwright Error: UnhandledPromiseRejectionWarning: TimeoutError: waiting for firstPage Proxy failed: timeout 30000ms exceeded.
Read more >pyppeteer.errors.timeouterror: navigation timeout exceeded
You get this error if all the JavaScript codes are not loaded within 8 ... waiting for firstpage proxy failed: timeout 30000ms exceeded....
Read more >Untitled
Now the Best Buy app is more than just great hand-held shopping. It's your fast, feel-good companion that can help you have more...
Read more >playwright Error: UnhandledPromiseRejectionWarning
playwright Error: UnhandledPromiseRejectionWarning: TimeoutError: waiting for firstPage Proxy failed: timeout 30000ms exceeded ...
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
/CC @mmarkelov Cross-referencing https://github.com/mmarkelov/jest-playwright/issues/5
Posting investigation note here.
jest-playwright
launches a browser once and then connects to it over webSocket for each environment. That works for Chromium and Firefox since they support multiple web socket clients, but fails for WebKit. I guess we did not do a great job explaining our launcherApp apis and limitations.What our local harness does instead is running an instance of a browser app per test process. It uses regular
playwright.launch
for that and then exposes browser.newContext with test environment. @mmarkelov is this something you could do in jest-playwright?I confirm it’s working, thanks