-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
Context:
- Playwright Version: v1.1.1
- Operating System: Ubuntu 20.04
- Node version: 14
- Browser: WebKit
- Extra: I've run
node ./node_modules/playwright/install.jssince the original install resulted in having no browsers installed.
Code Snippet
const { webkit } = require('playwright')
async function run () {
const browser = await webkit.launch()
const page = await browser.newPage()
await page.goto('http://whatsmyuseragent.org/')
await page.screenshot({ path: `example.png` })
await browser.close()
}
run()Describe the bug
I don't appear to run anything, since the browser says it was closed.
ant@machine /home/me/Projects/acceptance npm run test 16:01:35
> @beyonk/[email protected] test /home/ant/Projects/acceptance
> DEBUG=pw:browser* node tests/homepage.spec.js
pw:browser <launching> /home/me/.cache/ms-playwright/webkit-1269/pw_run.sh --inspector-pipe --headless --no-startup-window +0ms
pw:browser <launched> pid=599506 +5ms
pw:browser:err Cannot find a MiniBrowser.app in neither location +0ms
pw:browser <process did exit: exitCode=1, signal=null> +10ms
pw:browser <gracefully close start> +10ms
pw:browser <kill> +1ms
pw:browser <gracefully close end> +3ms
(node:599495) UnhandledPromiseRejectionWarning: Protocol error (Playwright.enable): Browser has been closed.
==================== webkit.launch logs ====================
<launching> /home/me/.cache/ms-playwright/webkit-1269/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=599506
Cannot find a MiniBrowser.app in neither location
<process did exit: exitCode=1, signal=null>
============================================================
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels