-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot run Playwright UI after npm init playwright@latest on WSL2 #34187
Comments
@RERepos This is unexpected, not sure what's happening. The error message is "Cannot navigate to invalid URL" - I wonder what's the URL? If you could run with |
@dgozman Thank you for your reply! I ran it on both computers. The outputs look very similar, but maybe have slight differences. I'll post the first computer here, then add another post with the second computer. This is the output from the Desktop: ~:pls-playwright-fromScratch$ DEBUG=pw:protocol,pw:browser npx playwright test --ui |
This is the output from the laptop: ~:pls-playwright-fromScratch$ DEBUG=pw:protocol,pw:browser npx playwright test --ui |
Thanks!
|
I'm not sure if we'll land the fix, given that this can also be worked around by updating Node.js to the latest v18 release. So if you need a fix now, update Node.js! See #34203 (comment) |
I upgraded to node v20.18.1, and Thanks for your helpl!!! |
Version
1.49.1
Steps to reproduce
Follow steps on https://playwright.dev/docs/intro
npm init playwright@latest
npx playwright test
- works finenpx playwright show-report
- works finenpx playwright test --ui
- does not workExpected behavior
Expected to see the Playwright UI screen.
Actual behavior
Errors:
ProtocolError: Protocol error (Page.navigate): Cannot navigate to invalid URL
at /home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/chromium/crConnection.js:135:16
at new Promise ()
at CRSession.send (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/chromium/crConnection.js:131:12)
at FrameSession._navigate (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/chromium/crPage.js:506:41)
at CRPage.navigateFrame (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/chromium/crPage.js:166:41)
at Frame._gotoAction (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/frames.js:540:55)
at /home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/frames.js:524:74
at Frame.raceNavigationAction (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/frames.js:496:95)
at Frame._goto (/home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/frames.js:524:17)
at /home/rerozak/rozak_app_foundry/pls-playwright-fromScratch/node_modules/playwright-core/lib/server/frames.js:521:44 {
type: 'error',
method: 'Page.navigate',
logs: undefined
}
Additional context
I left comments on another thread, but I see it was already closed and they were using Mac anyhow.
I'm just trying to get started with Playwright, so I'm simply starting from the installation/intro page.
I've tried clean installs of both the JS and TS versions.
I've tried restarting the computers.
I know WSL is kind of in it's own world, so are there any special steps needed for this environ?
Environment
The text was updated successfully, but these errors were encountered: