microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.6k stars 3.57k forks source link

[REGRESSION] Fresh playwright install crashes for WebKit with error `browserContext.newPage: Target closed` #20576

Closed carlnoval closed 1 year ago

carlnoval commented 1 year ago

Context:

Code Snippet

// tests/example.spec.ts

import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
  await page.goto('https://playwright.dev/');

  // Expect a title "to contain" a substring.
  await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
  await page.goto('https://playwright.dev/');

  // Click the get started link.
  await page.getByRole('link', { name: 'Get started' }).click();

  // Expects the URL to contain intro.
  await expect(page).toHaveURL(/.*intro/);
});

Describe the bug

  1. Playwright fresh install
    
    npm init playwright@latest 
    Getting started with writing end-to-end tests with Playwright:
    Initializing project in '.'
    ✔ Do you want to use TypeScript or JavaScript? · TypeScript
    ✔ Where to put your end-to-end tests? · tests
    ✔ Add a GitHub Actions workflow? (y/N) · true
    ✔ Install Playwright browsers (can be done manually via 'npx playwright install')? (Y/n) · true
    Initializing NPM project (npm init -y)…
    Wrote to .../ts-playwright/package.json:

{ "name": "ts-playwright", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }

Installing Playwright Test (npm install --save-dev @playwright/test)…

added 3 packages, and audited 4 packages in 2s

found 0 vulnerabilities Downloading browsers (npx playwright install)… Downloading Chromium 110.0.5481.38 (playwright build v1045) from https://playwright.azureedge.net/builds/chromium/1045/chromium-mac-arm64.zip 123.8 Mb [====================] 100% 0.0s Chromium 110.0.5481.38 (playwright build v1045) downloaded to .../Library/Caches/ms-playwright/chromium-1045 Downloading Firefox 108.0.2 (playwright build v1372) from https://playwright.azureedge.net/builds/firefox/1372/firefox-mac-11-arm64.zip 69.8 Mb [====================] 100% 0.0s Firefox 108.0.2 (playwright build v1372) downloaded to .../Library/Caches/ms-playwright/firefox-1372 Downloading Webkit 16.4 (playwright build v1767) from https://playwright.azureedge.net/builds/webkit/1767/webkit-mac-12-arm64.zip 56.9 Mb [====================] 100% 0.0s Webkit 16.4 (playwright build v1767) downloaded to .../Library/Caches/ms-playwright/webkit-1767 Writing playwright.config.ts. Writing .github/workflows/playwright.yml. Writing tests/example.spec.ts. Writing tests-examples/demo-todo-app.spec.ts. Writing package.json. ✔ Success! Created a Playwright Test project at .../javascript-projects/ts-playwright

2. Run test, see attached img for sample HTML report

npx playwright test

Running 6 tests using 4 workers 1) [webkit] › example.spec.ts:3:5 › has title ====================================================

browserContext.newPage: Target closed

2) [webkit] › example.spec.ts:10:5 › get started link ============================================

browserContext.newPage: Target closed

2 failed [webkit] › example.spec.ts:3:5 › has title ===================================================== [webkit] › example.spec.ts:10:5 › get started link ============================================= 4 passed (7.8s)



<img width="1208" alt="Screen Shot 2023-02-02 at 10 41 26" src="https://user-images.githubusercontent.com/18746187/216211971-abe5c143-2f3a-45d7-b1b1-79b6c0dbf1cd.png">
mxschmitt commented 1 year ago

Can you run the following? DEBUG=pw:browser,pw:protocol npx playwright test --project=webkit

This should give us more hints whats happening.

carlnoval commented 1 year ago

Here are the logs after running: DEBUG=pw:browser,pw:protocol npx playwright test --project=webkit

Running 2 tests using 2 workers
[webkit] › example.spec.ts:10:5 › get started link
  pw:browser <launching> .../Library/Caches/ms-playwright/webkit-1767/pw_run.sh --inspector-pipe --no-startup-window +0ms
[webkit] › example.spec.ts:3:5 › has title
  pw:browser <launching> .../Library/Caches/ms-playwright/webkit-1767/pw_run.sh --inspector-pipe --no-startup-window +0ms
  pw:browser <launched> pid=61248 +5ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:browser <launched> pid=61247 +6ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":1,"method":"Playwright.enable"} +0ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":1,"method":"Playwright.enable"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":1} +143ms
  pw:protocol SEND ► {"id":2,"method":"Playwright.createContext"} +4ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"result":{},"id":1} +157ms
  pw:protocol SEND ► {"id":2,"method":"Playwright.createContext"} +2ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"result":{"browserContextId":"8000000000000002"},"id":2} +35ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"result":{"browserContextId":"8000000000000002"},"id":2} +25ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":3,"method":"Playwright.setDownloadBehavior","params":{"behavior":"allow","downloadPath":"/var/folders/0l/y_s9k0bs16z5nr4ggsm_2xsh0000gn/T/playwright-artifacts-a8co0i","browserContextId":"8000000000000002"}} +3ms
  pw:protocol SEND ► {"id":4,"method":"Playwright.setLanguages","params":{"browserContextId":"8000000000000002","languages":["en-US"]}} +0ms
  pw:protocol ◀ RECV {"result":{},"id":3} +0ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":3,"method":"Playwright.setDownloadBehavior","params":{"behavior":"allow","downloadPath":"/var/folders/0l/y_s9k0bs16z5nr4ggsm_2xsh0000gn/T/playwright-artifacts-80DTvs","browserContextId":"8000000000000002"}} +2ms
  pw:protocol SEND ► {"id":4,"method":"Playwright.setLanguages","params":{"browserContextId":"8000000000000002","languages":["en-US"]}} +0ms
  pw:protocol ◀ RECV {"result":{},"id":3} +0ms
  pw:protocol ◀ RECV {"result":{},"id":4} +1ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"result":{},"id":4} +1ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":5,"method":"Playwright.createPage","params":{"browserContextId":"8000000000000002"}} +6ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":5,"method":"Playwright.createPage","params":{"browserContextId":"8000000000000002"}} +8ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"method":"Playwright.pageProxyCreated","params":{"browserContextId":"8000000000000002","pageProxyId":"9"}} +28ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"method":"Playwright.pageProxyCreated","params":{"browserContextId":"8000000000000002","pageProxyId":"9"}} +26ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"page-10","type":"page","isPaused":true}},"browserContextId":"8000000000000002","pageProxyId":"9"} +63ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"page-10","type":"page","isPaused":true}},"browserContextId":"8000000000000002","pageProxyId":"9"} +63ms
  pw:protocol SEND ► {"id":6,"method":"Dialog.enable","pageProxyId":"9"} +2ms
  pw:protocol SEND ► {"id":7,"method":"Emulation.setActiveAndFocused","params":{"active":true},"pageProxyId":"9"} +1ms
  pw:protocol SEND ► {"id":8,"method":"Emulation.setDeviceMetricsOverride","params":{"width":1280,"height":720,"fixedLayout":false,"deviceScaleFactor":2},"pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":6,"method":"Dialog.enable","pageProxyId":"9"} +3ms
  pw:protocol SEND ► {"id":7,"method":"Emulation.setActiveAndFocused","params":{"active":true},"pageProxyId":"9"} +2ms
  pw:protocol SEND ► {"id":8,"method":"Emulation.setDeviceMetricsOverride","params":{"width":1280,"height":720,"fixedLayout":false,"deviceScaleFactor":2},"pageProxyId":"9"} +2ms
  pw:protocol SEND ► {"id":10,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":9,\"method\":\"Page.setScreenSizeOverride\",\"params\":{\"width\":1280,\"height\":720}}","targetId":"page-10"},"pageProxyId":"9"} +2ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":10,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":9,\"method\":\"Page.setScreenSizeOverride\",\"params\":{\"width\":1280,\"height\":720}}","targetId":"page-10"},"pageProxyId":"9"} +7ms
  pw:protocol SEND ► {"id":11,"method":"Emulation.setAuthCredentials","params":{"username":"","password":""},"pageProxyId":"9"} +1ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":11,"method":"Emulation.setAuthCredentials","params":{"username":"","password":""},"pageProxyId":"9"} +1ms
  pw:protocol SEND ► {"id":13,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":12,\"method\":\"Page.enable\"}","targetId":"page-10"},"pageProxyId":"9"} +0ms
  pw:protocol SEND ► {"id":15,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":14,\"method\":\"Page.getResourceTree\"}","targetId":"page-10"},"pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{"pageProxyId":"9"},"id":5} +1ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":13,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":12,\"method\":\"Page.enable\"}","targetId":"page-10"},"pageProxyId":"9"} +1ms
  pw:protocol SEND ► {"id":15,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":14,\"method\":\"Page.getResourceTree\"}","targetId":"page-10"},"pageProxyId":"9"} +1ms
  pw:protocol ◀ RECV {"result":{"pageProxyId":"9"},"id":5} +1ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"result":{},"id":6,"browserContextId":"8000000000000002","pageProxyId":"9"} +7ms
  pw:protocol ◀ RECV {"result":{},"id":7,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"result":{},"id":6,"browserContextId":"8000000000000002","pageProxyId":"9"} +4ms
  pw:protocol ◀ RECV {"result":{},"id":7,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":8,"browserContextId":"8000000000000002","pageProxyId":"9"} +2ms
  pw:protocol ◀ RECV {"result":{},"id":10,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":11,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":13,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":15,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"result":{},"id":8,"browserContextId":"8000000000000002","pageProxyId":"9"} +2ms
  pw:protocol ◀ RECV {"result":{},"id":10,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":11,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
  pw:protocol ◀ RECV {"result":{},"id":13,"browserContextId":"8000000000000002","pageProxyId":"9"} +1ms
  pw:protocol ◀ RECV {"result":{},"id":15,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"method":"Target.targetDestroyed","params":{"targetId":"page-10","crashed":true},"browserContextId":"8000000000000002","pageProxyId":"9"} +1ms
  pw:protocol SEND ► {"id":16,"method":"Target.resume","params":{"targetId":"page-10"},"pageProxyId":"9"} +3ms
  pw:protocol SEND ► {"id":17,"method":"Screencast.startScreencast","params":{"width":800,"height":600,"quality":90,"toolbarHeight":59},"pageProxyId":"9"} +1ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"method":"Target.targetDestroyed","params":{"targetId":"page-10","crashed":true},"browserContextId":"8000000000000002","pageProxyId":"9"} +6ms
  pw:protocol SEND ► {"id":16,"method":"Target.resume","params":{"targetId":"page-10"},"pageProxyId":"9"} +1ms
  pw:protocol SEND ► {"id":17,"method":"Screencast.startScreencast","params":{"width":800,"height":600,"quality":90,"toolbarHeight":59},"pageProxyId":"9"} +1ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"error":{"code":-32000,"message":"Missing target for given targetId","data":[{"code":-32000,"message":"Missing target for given targetId"}]},"id":16,"browserContextId":"8000000000000002","pageProxyId":"9"} +4ms
  pw:protocol ◀ RECV {"result":{"generation":1},"id":17,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"error":{"code":-32000,"message":"Missing target for given targetId","data":[{"code":-32000,"message":"Missing target for given targetId"}]},"id":16,"browserContextId":"8000000000000002","pageProxyId":"9"} +5ms
  pw:protocol ◀ RECV {"result":{"generation":1},"id":17,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol SEND ► {"id":18,"method":"Playwright.deleteContext","params":{"browserContextId":"8000000000000002"}} +12ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol SEND ► {"id":18,"method":"Playwright.deleteContext","params":{"browserContextId":"8000000000000002"}} +12ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:protocol ◀ RECV {"method":"Playwright.pageProxyDestroyed","params":{"pageProxyId":"9"}} +12ms
  pw:protocol ◀ RECV {"result":{},"id":18} +1ms
  pw:browser [pid=61247] <gracefully close start> +343ms
  pw:protocol ◀ RECV {"result":{},"id":-9999} +4ms
[webkit] › example.spec.ts:3:5 › has title
  pw:protocol ◀ RECV {"method":"Playwright.pageProxyDestroyed","params":{"pageProxyId":"9"}} +12ms
  pw:protocol ◀ RECV {"result":{},"id":18} +0ms
  pw:browser [pid=61248] <gracefully close start> +347ms
  pw:protocol ◀ RECV {"result":{},"id":-9999} +4ms
[webkit] › example.spec.ts:10:5 › get started link
  pw:browser [pid=61247] <process did exit: exitCode=0, signal=null> +5ms
  pw:browser [pid=61247] starting temporary directories cleanup +0ms
  pw:browser [pid=61247] finished temporary directories cleanup +4ms
  pw:browser [pid=61247] <gracefully close end> +0ms
  1) [webkit] › example.spec.ts:10:5 › get started link ============================================

    browserContext.newPage: Target closed

    attachment #1: trace (application/zip) ---------------------------------------------------------
    test-results/example-get-started-link-webkit/trace.zip
    Usage:

        npx playwright show-trace test-results/example-get-started-link-webkit/trace.zip

    ------------------------------------------------------------------------------------------------

[webkit] › example.spec.ts:3:5 › has title
  pw:browser [pid=61248] <process did exit: exitCode=0, signal=null> +7ms
  pw:browser [pid=61248] starting temporary directories cleanup +0ms
  pw:browser [pid=61248] finished temporary directories cleanup +8ms
  pw:browser [pid=61248] <gracefully close end> +0ms
  2) [webkit] › example.spec.ts:3:5 › has title ====================================================

    browserContext.newPage: Target closed

    attachment #1: trace (application/zip) ---------------------------------------------------------
    test-results/example-has-title-webkit/trace.zip
    Usage:

        npx playwright show-trace test-results/example-has-title-webkit/trace.zip

    ------------------------------------------------------------------------------------------------

  2 failed
    [webkit] › example.spec.ts:3:5 › has title =====================================================
    [webkit] › example.spec.ts:10:5 › get started link =============================================

  Serving HTML report at http://localhost:9323. Press Ctrl+C to quit.
mxschmitt commented 1 year ago

Before we dig any further, could you try our Canary Releases?: https://playwright.dev/docs/canary-releases

npm install -D @playwright/test@next
npx playwright install webkit
npx playwright test --project=webkit
carlnoval commented 1 year ago

Tried with Canary Release and still faced with the same issue. Below are the steps and logs

  1. Created a new project folder
  2. In the new project folder, first command: npm install -D @playwright/test@next
    
    added 3 packages, and audited 4 packages in 3s

found 0 vulnerabilities

3. Second command: `npx playwright install webkit`

Downloading Webkit 16.4 (playwright build v1788) from https://playwright.azureedge.net/builds/webkit/1788/webkit-mac-12-arm64.zip 57 Mb [====================] 100% 0.0s Webkit 16.4 (playwright build v1788) downloaded to .../Library/Caches/ms-playwright/webkit-1788

3. Provided test code snippet and `playwright.config.ts`
4. Third command: `npx playwright test --project=webkit`

Running 2 tests using 2 workers 1) [webkit] › example.spec.ts:10:5 › get started link ============================================

browserContext.newPage: Target closed

attachment #1: trace (application/zip) ---------------------------------------------------------
test-results/example-get-started-link-webkit/trace.zip
Usage:

    npx playwright show-trace test-results/example-get-started-link-webkit/trace.zip

------------------------------------------------------------------------------------------------

2) [webkit] › example.spec.ts:3:5 › has title ====================================================

browserContext.newPage: Target closed

attachment #1: trace (application/zip) ---------------------------------------------------------
test-results/example-has-title-webkit/trace.zip
Usage:

    npx playwright show-trace test-results/example-has-title-webkit/trace.zip

------------------------------------------------------------------------------------------------

2 failed [webkit] › example.spec.ts:3:5 › has title ===================================================== [webkit] › example.spec.ts:10:5 › get started link =============================================

Serving HTML report at http://localhost:9323. Press Ctrl+C to quit.

5. Fourth command: `DEBUG=pw:browser,pw:protocol npx playwright test --project=webkit`

Running 2 tests using 2 workers [webkit] › example.spec.ts:3:5 › has title pw:browser .../Library/Caches/ms-playwright/webkit-1788/pw_run.sh --inspector-pipe --no-startup-window +0ms [webkit] › example.spec.ts:10:5 › get started link pw:browser .../Library/Caches/ms-playwright/webkit-1788/pw_run.sh --inspector-pipe --no-startup-window +0ms [webkit] › example.spec.ts:3:5 › has title pw:browser pid=64494 +4ms [webkit] › example.spec.ts:10:5 › get started link pw:browser pid=64495 +5ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":1,"method":"Playwright.enable"} +0ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":1,"method":"Playwright.enable"} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{},"id":1} +141ms pw:protocol SEND ► {"id":2,"method":"Playwright.createContext"} +4ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"result":{},"id":1} +156ms pw:protocol SEND ► {"id":2,"method":"Playwright.createContext"} +3ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{"browserContextId":"8000000000000002"},"id":2} +43ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"result":{"browserContextId":"8000000000000002"},"id":2} +29ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":3,"method":"Playwright.setDownloadBehavior","params":{"behavior":"allow","downloadPath":"/var/folders/0l/y_s9k0bs16z5nr4ggsm_2xsh0000gn/T/playwright-artifacts-Zny66W","browserContextId":"8000000000000002"}} +2ms pw:protocol SEND ► {"id":4,"method":"Playwright.setLanguages","params":{"browserContextId":"8000000000000002","languages":["en-US"]}} +0ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":3,"method":"Playwright.setDownloadBehavior","params":{"behavior":"allow","downloadPath":"/var/folders/0l/y_s9k0bs16z5nr4ggsm_2xsh0000gn/T/playwright-artifacts-iX7KeG","browserContextId":"8000000000000002"}} +2ms pw:protocol SEND ► {"id":4,"method":"Playwright.setLanguages","params":{"browserContextId":"8000000000000002","languages":["en-US"]}} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{},"id":3} +0ms pw:protocol ◀ RECV {"result":{},"id":4} +1ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"result":{},"id":3} +1ms pw:protocol ◀ RECV {"result":{},"id":4} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":5,"method":"Playwright.createPage","params":{"browserContextId":"8000000000000002"}} +5ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":5,"method":"Playwright.createPage","params":{"browserContextId":"8000000000000002"}} +6ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"method":"Playwright.pageProxyCreated","params":{"browserContextId":"8000000000000002","pageProxyId":"9"}} +23ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"method":"Playwright.pageProxyCreated","params":{"browserContextId":"8000000000000002","pageProxyId":"9"}} +22ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"page-10","type":"page","isPaused":true}},"browserContextId":"8000000000000002","pageProxyId":"9"} +62ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"page-10","type":"page","isPaused":true}},"browserContextId":"8000000000000002","pageProxyId":"9"} +62ms pw:protocol SEND ► {"id":6,"method":"Dialog.enable","pageProxyId":"9"} +3ms pw:protocol SEND ► {"id":7,"method":"Emulation.setActiveAndFocused","params":{"active":true},"pageProxyId":"9"} +1ms pw:protocol SEND ► {"id":8,"method":"Emulation.setDeviceMetricsOverride","params":{"width":1280,"height":720,"fixedLayout":false,"deviceScaleFactor":2},"pageProxyId":"9"} +1ms pw:protocol SEND ► {"id":10,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":9,\"method\":\"Page.setScreenSizeOverride\",\"params\":{\"width\":1280,\"height\":720}}","targetId":"page-10"},"pageProxyId":"9"} +1ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":6,"method":"Dialog.enable","pageProxyId":"9"} +6ms pw:protocol SEND ► {"id":7,"method":"Emulation.setActiveAndFocused","params":{"active":true},"pageProxyId":"9"} +2ms pw:protocol SEND ► {"id":8,"method":"Emulation.setDeviceMetricsOverride","params":{"width":1280,"height":720,"fixedLayout":false,"deviceScaleFactor":2},"pageProxyId":"9"} +1ms pw:protocol SEND ► {"id":10,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":9,\"method\":\"Page.setScreenSizeOverride\",\"params\":{\"width\":1280,\"height\":720}}","targetId":"page-10"},"pageProxyId":"9"} +1ms pw:protocol SEND ► {"id":11,"method":"Emulation.setAuthCredentials","params":{"username":"","password":""},"pageProxyId":"9"} +0ms pw:protocol SEND ► {"id":13,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":12,\"method\":\"Page.enable\"}","targetId":"page-10"},"pageProxyId":"9"} +1ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":11,"method":"Emulation.setAuthCredentials","params":{"username":"","password":""},"pageProxyId":"9"} +5ms pw:protocol SEND ► {"id":13,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":12,\"method\":\"Page.enable\"}","targetId":"page-10"},"pageProxyId":"9"} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":15,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":14,\"method\":\"Page.getResourceTree\"}","targetId":"page-10"},"pageProxyId":"9"} +0ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":15,"method":"Target.sendMessageToTarget","params":{"message":"{\"id\":14,\"method\":\"Page.getResourceTree\"}","targetId":"page-10"},"pageProxyId":"9"} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{"pageProxyId":"9"},"id":5} +1ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"result":{"pageProxyId":"9"},"id":5} +1ms pw:protocol ◀ RECV {"result":{},"id":6,"browserContextId":"8000000000000002","pageProxyId":"9"} +8ms pw:protocol ◀ RECV {"result":{},"id":7,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":8,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":10,"browserContextId":"8000000000000002","pageProxyId":"9"} +1ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{},"id":6,"browserContextId":"8000000000000002","pageProxyId":"9"} +9ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"result":{},"id":11,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":13,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":15,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"result":{},"id":7,"browserContextId":"8000000000000002","pageProxyId":"9"} +1ms pw:protocol ◀ RECV {"result":{},"id":8,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":10,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":11,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":13,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"result":{},"id":15,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms pw:protocol ◀ RECV {"method":"Target.targetDestroyed","params":{"targetId":"page-10","crashed":true},"browserContextId":"8000000000000002","pageProxyId":"9"} +9ms pw:protocol SEND ► {"id":16,"method":"Target.resume","params":{"targetId":"page-10"},"pageProxyId":"9"} +2ms pw:protocol SEND ► {"id":17,"method":"Screencast.startScreencast","params":{"width":800,"height":600,"quality":90,"toolbarHeight":59},"pageProxyId":"9"} +2ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"method":"Target.targetDestroyed","params":{"targetId":"page-10","crashed":true},"browserContextId":"8000000000000002","pageProxyId":"9"} +15ms pw:protocol SEND ► {"id":16,"method":"Target.resume","params":{"targetId":"page-10"},"pageProxyId":"9"} +3ms pw:protocol SEND ► {"id":17,"method":"Screencast.startScreencast","params":{"width":800,"height":600,"quality":90,"toolbarHeight":59},"pageProxyId":"9"} +1ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"error":{"code":-32000,"message":"Missing target for given targetId","data":[{"code":-32000,"message":"Missing target for given targetId"}]},"id":16,"browserContextId":"8000000000000002","pageProxyId":"9"} +8ms pw:protocol ◀ RECV {"result":{"generation":1},"id":17,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"error":{"code":-32000,"message":"Missing target for given targetId","data":[{"code":-32000,"message":"Missing target for given targetId"}]},"id":16,"browserContextId":"8000000000000002","pageProxyId":"9"} +4ms pw:protocol ◀ RECV {"result":{"generation":1},"id":17,"browserContextId":"8000000000000002","pageProxyId":"9"} +0ms [webkit] › example.spec.ts:3:5 › has title pw:protocol SEND ► {"id":18,"method":"Playwright.deleteContext","params":{"browserContextId":"8000000000000002"}} +12ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol SEND ► {"id":18,"method":"Playwright.deleteContext","params":{"browserContextId":"8000000000000002"}} +12ms [webkit] › example.spec.ts:3:5 › has title pw:protocol ◀ RECV {"method":"Playwright.pageProxyDestroyed","params":{"pageProxyId":"9"}} +4ms pw:protocol ◀ RECV {"result":{},"id":18} +1ms [webkit] › example.spec.ts:10:5 › get started link pw:protocol ◀ RECV {"method":"Playwright.pageProxyDestroyed","params":{"pageProxyId":"9"}} +7ms pw:protocol ◀ RECV {"result":{},"id":18} +1ms [webkit] › example.spec.ts:3:5 › has title pw:browser [pid=64494] +349ms pw:protocol ◀ RECV {"result":{},"id":-9999} +6ms [webkit] › example.spec.ts:10:5 › get started link pw:browser [pid=64495] +349ms pw:protocol ◀ RECV {"result":{},"id":-9999} +4ms [webkit] › example.spec.ts:3:5 › has title pw:browser [pid=64494] +5ms pw:browser [pid=64494] starting temporary directories cleanup +0ms pw:browser [pid=64494] finished temporary directories cleanup +5ms pw:browser [pid=64494] +0ms 1) [webkit] › example.spec.ts:3:5 › has title ====================================================

browserContext.newPage: Target closed

attachment #1: trace (application/zip) ---------------------------------------------------------
test-results/example-has-title-webkit/trace.zip
Usage:

    npx playwright show-trace test-results/example-has-title-webkit/trace.zip

------------------------------------------------------------------------------------------------

[webkit] › example.spec.ts:10:5 › get started link pw:browser [pid=64495] +13ms pw:browser [pid=64495] starting temporary directories cleanup +1ms pw:browser [pid=64495] finished temporary directories cleanup +4ms pw:browser [pid=64495] +0ms 2) [webkit] › example.spec.ts:10:5 › get started link ============================================

browserContext.newPage: Target closed

attachment #1: trace (application/zip) ---------------------------------------------------------
test-results/example-get-started-link-webkit/trace.zip
Usage:

    npx playwright show-trace test-results/example-get-started-link-webkit/trace.zip

------------------------------------------------------------------------------------------------

2 failed [webkit] › example.spec.ts:3:5 › has title ===================================================== [webkit] › example.spec.ts:10:5 › get started link =============================================

Serving HTML report at http://localhost:9323. Press Ctrl+C to quit.

dgozman commented 1 year ago

@carlnoval Unfortunately, fresh webkit crashes on MacOS 12.2. We recommend to upgrade to 12.6.

carlnoval commented 1 year ago

Thanks for looking into it, I have upgraded to MacOS Ventura Version 13.2 and the issue no longer happens.

Conclusion is that this was an old OS issue, closing.

wintercounter commented 1 year ago

I have the same problem with a fresh install in WSL2 using the provided example only. I have no clue where to go from here.

> playwright test --project=chromium

Running 2 tests using 2 workers
  1) [chromium] › example.spec.ts:3:1 › has title ──────────────────────────────────────────────────

    Test timeout of 30000ms exceeded while setting up "page".

    Error: browserContext.newPage: Target closed

    Pending operations:
      - browserContext.newPage

  2) [chromium] › example.spec.ts:10:1 › get started link ──────────────────────────────────────────

    Test timeout of 30000ms exceeded while setting up "page".

    Error: browserContext.newPage: Target closed

    Pending operations:
      - browserContext.newPage

  2 failed                                                                                                                                                                                                                                                                                                                                                        
    [chromium] › example.spec.ts:3:1 › has title ───────────────────────────────────────────────────
    [chromium] › example.spec.ts:10:1 › get started link ───────────────────────────────────────────

With debug:

DEBUG=pw:browser,pw:protocol npx playwright test --project=chromium

Running 2 tests using 2 workers
[chromium] › example.spec.ts:10:1 › get started link
  pw:browser <launching> /root/.cache/ms-playwright/chromium-1076/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-p
hishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,Auto
ExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-au
tomation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-W2A6RY --remote-debugging-pipe --no-startup-window +0ms
[chromium] › example.spec.ts:3:1 › has title                                                                                                                                                                                                                                                                                                                      
  pw:browser <launching> /root/.cache/ms-playwright/chromium-1076/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-p
hishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,Auto
ExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-au
tomation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-wLUXEU --remote-debugging-pipe --no-startup-window +0ms
[chromium] › example.spec.ts:10:1 › get started link                                                                                                                                                                                                                                                                                                              
  pw:browser <launched> pid=11833 +2ms
[chromium] › example.spec.ts:3:1 › has title                                                                                                                                                                                                                                                                                                                      
  pw:browser <launched> pid=11834 +2ms
[chromium] › example.spec.ts:10:1 › get started link                                                                                                                                                                                                                                                                                                              
  pw:protocol SEND ► {"id":1,"method":"Browser.getVersion"} +0ms
[chromium] › example.spec.ts:3:1 › has title                                                                                                                                                                                                                                                                                                                      
  pw:protocol SEND ► {"id":1,"method":"Browser.getVersion"} +0ms
[chromium] › example.spec.ts:10:1 › get started link
  pw:browser [pid=11833][err] [0817/185249.577027:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable. +91ms
  pw:protocol ◀ RECV {"id":1,"result":{"protocolVersion":"1.3","product":"HeadlessChrome/116.0.5845.82","revision":"@493498bfc68a67c0cf4b8ed6efd5caad072f3f41","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/116.0.5845.82 Safari/537.36","jsVersion":"11.6.189.18"}} +91ms                                  
  pw:protocol SEND ► {"id":2,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true,"flatten":true}} +0ms                                                                                                                                                                                                                      
  pw:protocol ◀ RECV {"id":2,"result":{}} +0ms                                                                                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":3,"method":"Target.createBrowserContext","params":{"disposeOnDetach":true}} +7ms                                                                                                                                                                                                                                                       
  pw:protocol ◀ RECV {"id":3,"result":{"browserContextId":"08F1463450738D9FFD4A22B3EDB7D5C5"}} +0ms                                                                                                                                                                                                                                                               
  pw:protocol SEND ► {"id":4,"method":"Browser.setDownloadBehavior","params":{"behavior":"allowAndName","browserContextId":"08F1463450738D9FFD4A22B3EDB7D5C5","downloadPath":"/tmp/playwright-artifacts-QiHQMZ","eventsEnabled":true}} +1ms                                                                                                                       
  pw:protocol ◀ RECV {"id":4,"result":{}} +1ms                                                                                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":5,"method":"Target.createTarget","params":{"url":"about:blank","browserContextId":"08F1463450738D9FFD4A22B3EDB7D5C5"}} +7ms
  pw:protocol ◀ RECV {"method":"Target.attachedToTarget","params":{"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E","targetInfo":{"targetId":"89FCE6015808430D5434B466C17AC33C","type":"page","title":"","url":"","attached":true,"canAccessOpener":false,"browserContextId":"08F1463450738D9FFD4A22B3EDB7D5C5"},"waitingForDebugger":true}} +2ms                   
  pw:protocol SEND ► {"id":6,"method":"Browser.getWindowForTarget","sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +1ms                                                                                                                                                                                                                                           
  pw:protocol ◀ RECV {"id":5,"result":{"targetId":"89FCE6015808430D5434B466C17AC33C"}} +1ms                                                                                                                                                                                                                                                                       
  pw:protocol ◀ RECV {"id":6,"result":{"windowId":1,"bounds":{"left":0,"top":0,"width":800,"height":600,"windowState":"normal"}},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +1ms
  pw:protocol SEND ► {"id":7,"method":"Page.enable","sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                                          
  pw:protocol SEND ► {"id":8,"method":"Page.getFrameTree","sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":9,"method":"Log.enable","params":{},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                               
  pw:protocol SEND ► {"id":10,"method":"Page.setLifecycleEventsEnabled","params":{"enabled":true},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                            
  pw:protocol SEND ► {"id":11,"method":"Runtime.enable","params":{},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                          
  pw:protocol SEND ► {"id":12,"method":"Page.addScriptToEvaluateOnNewDocument","params":{"source":"","worldName":"__playwright_utility_world__"},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                             
  pw:protocol SEND ► {"id":13,"method":"Network.enable","sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                                      
  pw:protocol SEND ► {"id":14,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true,"flatten":true},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                      
  pw:protocol SEND ► {"id":15,"method":"Emulation.setFocusEmulationEnabled","params":{"enabled":true},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                        
  pw:protocol SEND ► {"id":16,"method":"Emulation.setDeviceMetricsOverride","params":{"mobile":false,"width":1280,"height":720,"screenWidth":1280,"screenHeight":720,"deviceScaleFactor":1,"screenOrientation":{"angle":0,"type":"landscapePrimary"}},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                        
  pw:protocol SEND ► {"id":17,"method":"Browser.setWindowBounds","params":{"windowId":1,"bounds":{"width":1280,"height":720}},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +1ms                                                                                                                                                                                
  pw:protocol SEND ► {"id":18,"method":"Emulation.setUserAgentOverride","params":{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.82 Safari/537.36","acceptLanguage":"en-US"},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                
  pw:protocol SEND ► {"id":19,"method":"Emulation.setLocaleOverride","params":{"locale":"en-US"},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                             
  pw:protocol SEND ► {"id":20,"method":"Page.setFontFamilies","params":{"fontFamilies":{"standard":"Times New Roman","fixed":"Monospace","serif":"Times New Roman","sansSerif":"Arial","cursive":"Comic Sans MS","fantasy":"Impact"}},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                        
  pw:protocol SEND ► {"id":21,"method":"Emulation.setEmulatedMedia","params":{"media":"","features":[{"name":"prefers-color-scheme","value":"light"},{"name":"prefers-reduced-motion","value":"no-preference"},{"name":"forced-colors","value":"none"}]},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                     
  pw:protocol SEND ► {"id":22,"method":"Runtime.runIfWaitingForDebugger","sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                     
  pw:protocol ◀ RECV {"id":17,"result":{},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +0ms                                                                                                                                                                                                                                                                    
[chromium] › example.spec.ts:3:1 › has title                                                                                                                                                                                                                                                                                                                      
  pw:browser [pid=11834][err] [0817/185249.607197:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable. +121ms
[chromium] › example.spec.ts:10:1 › get started link                                                                                                                                                                                                                                                                                                              
  pw:protocol ◀ RECV {"id":14,"result":{},"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E"} +8ms
[chromium] › example.spec.ts:3:1 › has title                                                                                                                                                                                                                                                                                                                      
  pw:protocol ◀ RECV {"id":1,"result":{"protocolVersion":"1.3","product":"HeadlessChrome/116.0.5845.82","revision":"@493498bfc68a67c0cf4b8ed6efd5caad072f3f41","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/116.0.5845.82 Safari/537.36","jsVersion":"11.6.189.18"}} +121ms
  pw:protocol SEND ► {"id":2,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true,"flatten":true}} +0ms                                                                                                                                                                                                                      
  pw:protocol ◀ RECV {"id":2,"result":{}} +1ms                                                                                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":3,"method":"Target.createBrowserContext","params":{"disposeOnDetach":true}} +4ms                                                                                                                                                                                                                                                       
  pw:protocol ◀ RECV {"id":3,"result":{"browserContextId":"857864C07EE8E0BF2540084CE8587907"}} +0ms                                                                                                                                                                                                                                                               
  pw:protocol SEND ► {"id":4,"method":"Browser.setDownloadBehavior","params":{"behavior":"allowAndName","browserContextId":"857864C07EE8E0BF2540084CE8587907","downloadPath":"/tmp/playwright-artifacts-93E8SR","eventsEnabled":true}} +1ms                                                                                                                       
  pw:protocol ◀ RECV {"id":4,"result":{}} +2ms                                                                                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":5,"method":"Target.createTarget","params":{"url":"about:blank","browserContextId":"857864C07EE8E0BF2540084CE8587907"}} +8ms                                                                                                                                                                                                            
  pw:protocol ◀ RECV {"method":"Target.attachedToTarget","params":{"sessionId":"7B349000F450F88A7B47BA58904203BC","targetInfo":{"targetId":"FCDC3AB8FE095373201FDAAE9C2BBF40","type":"page","title":"","url":"","attached":true,"canAccessOpener":false,"browserContextId":"857864C07EE8E0BF2540084CE8587907"},"waitingForDebugger":true}} +1ms                   
  pw:protocol SEND ► {"id":6,"method":"Browser.getWindowForTarget","sessionId":"7B349000F450F88A7B47BA58904203BC"} +1ms                                                                                                                                                                                                                                           
  pw:protocol ◀ RECV {"id":5,"result":{"targetId":"FCDC3AB8FE095373201FDAAE9C2BBF40"}} +1ms                                                                                                                                                                                                                                                                       
  pw:protocol ◀ RECV {"id":6,"result":{"windowId":1,"bounds":{"left":0,"top":0,"width":800,"height":600,"windowState":"normal"}},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +2ms                                                                                                                                                                             
  pw:protocol SEND ► {"id":7,"method":"Page.enable","sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                                          
  pw:protocol SEND ► {"id":8,"method":"Page.getFrameTree","sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                                    
  pw:protocol SEND ► {"id":9,"method":"Log.enable","params":{},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                               
  pw:protocol SEND ► {"id":10,"method":"Page.setLifecycleEventsEnabled","params":{"enabled":true},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                            
  pw:protocol SEND ► {"id":11,"method":"Runtime.enable","params":{},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                          
  pw:protocol SEND ► {"id":12,"method":"Page.addScriptToEvaluateOnNewDocument","params":{"source":"","worldName":"__playwright_utility_world__"},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                             
  pw:protocol SEND ► {"id":13,"method":"Network.enable","sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                                      
  pw:protocol SEND ► {"id":14,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true,"flatten":true},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                      
  pw:protocol SEND ► {"id":15,"method":"Emulation.setFocusEmulationEnabled","params":{"enabled":true},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                        
  pw:protocol SEND ► {"id":16,"method":"Emulation.setDeviceMetricsOverride","params":{"mobile":false,"width":1280,"height":720,"screenWidth":1280,"screenHeight":720,"deviceScaleFactor":1,"screenOrientation":{"angle":0,"type":"landscapePrimary"}},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                        
  pw:protocol SEND ► {"id":17,"method":"Browser.setWindowBounds","params":{"windowId":1,"bounds":{"width":1280,"height":720}},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +1ms                                                                                                                                                                                
  pw:protocol SEND ► {"id":18,"method":"Emulation.setUserAgentOverride","params":{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.82 Safari/537.36","acceptLanguage":"en-US"},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                
  pw:protocol SEND ► {"id":19,"method":"Emulation.setLocaleOverride","params":{"locale":"en-US"},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                             
  pw:protocol SEND ► {"id":20,"method":"Page.setFontFamilies","params":{"fontFamilies":{"standard":"Times New Roman","fixed":"Monospace","serif":"Times New Roman","sansSerif":"Arial","cursive":"Comic Sans MS","fantasy":"Impact"}},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                        
  pw:protocol SEND ► {"id":21,"method":"Emulation.setEmulatedMedia","params":{"media":"","features":[{"name":"prefers-color-scheme","value":"light"},{"name":"prefers-reduced-motion","value":"no-preference"},{"name":"forced-colors","value":"none"}]},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                     
  pw:protocol SEND ► {"id":22,"method":"Runtime.runIfWaitingForDebugger","sessionId":"7B349000F450F88A7B47BA58904203BC"} +0ms                                                                                                                                                                                                                                     
  pw:protocol ◀ RECV {"id":17,"result":{},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +1ms                                                                                                                                                                                                                                                                    
  pw:protocol ◀ RECV {"id":14,"result":{},"sessionId":"7B349000F450F88A7B47BA58904203BC"} +6ms                                                                                                                                                                                                                                                                    
[chromium] › example.spec.ts:10:1 › get started link
  pw:protocol SEND ► {"id":23,"method":"Target.disposeBrowserContext","params":{"browserContextId":"08F1463450738D9FFD4A22B3EDB7D5C5"}} +30s
  pw:protocol ◀ RECV {"method":"Target.detachedFromTarget","params":{"sessionId":"D1A4EFFD7372E7A2AFB1106FA2825A0E","targetId":"89FCE6015808430D5434B466C17AC33C"}} +1ms                                                                                                                                                                                          
  pw:protocol ◀ RECV {"id":23,"result":{}} +3ms                                                                                                                                                                                                                                                                                                                   
  pw:browser [pid=11833] <gracefully close start> +30s                                                                                                                                                                                                                                                                                                            
  pw:protocol ◀ RECV {"id":-9999,"result":{}} +2ms                                                                                                                                                                                                                                                                                                                
  pw:browser [pid=11833] <process did exit: exitCode=0, signal=null> +7ms                                                                                                                                                                                                                                                                                         
  pw:browser [pid=11833] starting temporary directories cleanup +0ms                                                                                                                                                                                                                                                                                              
  pw:browser [pid=11833] finished temporary directories cleanup +1ms                                                                                                                                                                                                                                                                                              
  pw:browser [pid=11833] <gracefully close end> +0ms                                                                                                                                                                                                                                                                                                              
  1) [chromium] › example.spec.ts:10:1 › get started link ──────────────────────────────────────────                                                                                                                                                                                                                                                              

    Test timeout of 30000ms exceeded while setting up "page".

    Error: browserContext.newPage: Target closed

    Pending operations:
      - browserContext.newPage

[chromium] › example.spec.ts:3:1 › has title
  pw:protocol SEND ► {"id":23,"method":"Target.disposeBrowserContext","params":{"browserContextId":"857864C07EE8E0BF2540084CE8587907"}} +30s
  pw:protocol ◀ RECV {"method":"Target.detachedFromTarget","params":{"sessionId":"7B349000F450F88A7B47BA58904203BC","targetId":"FCDC3AB8FE095373201FDAAE9C2BBF40"}} +1ms                                                                                                                                                                                          
  pw:protocol ◀ RECV {"id":23,"result":{}} +3ms                                                                                                                                                                                                                                                                                                                   
  pw:browser [pid=11834] <gracefully close start> +30s                                                                                                                                                                                                                                                                                                            
  pw:protocol ◀ RECV {"id":-9999,"result":{}} +2ms                                                                                                                                                                                                                                                                                                                
  pw:browser [pid=11834] <process did exit: exitCode=0, signal=null> +47ms
  pw:browser [pid=11834] starting temporary directories cleanup +0ms                                                                                                                                                                                                                                                                                              
  pw:browser [pid=11834] finished temporary directories cleanup +1ms                                                                                                                                                                                                                                                                                              
  pw:browser [pid=11834] <gracefully close end> +0ms                                                                                                                                                                                                                                                                                                              
  2) [chromium] › example.spec.ts:3:1 › has title ──────────────────────────────────────────────────                                                                                                                                                                                                                                                              

    Test timeout of 30000ms exceeded while setting up "page".

    Error: browserContext.newPage: Target closed

    Pending operations:
      - browserContext.newPage

  2 failed                                                                                                                                                                                                                                                                                                                                                        
    [chromium] › example.spec.ts:3:1 › has title ───────────────────────────────────────────────────
    [chromium] › example.spec.ts:10:1 › get started link ───────────────────────────────────────────