Skip to content

[BUG][Inspector] Stack won't extracted correctly if browser specific NPM packages are used #5588

@mxschmitt

Description

@mxschmitt

Code:

const { chromium } = require('playwright-chromium');

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();
  await page.goto('http://whatsmyuseragent.org/');
  await page.screenshot({ path: `example.png` });
  await browser.close();
})();

Actual:

image

Expected: When using playwright instead of playwright-chromium it works and shows the correct code in the Inspector window.

PWDEBUG=1 node test.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions