1

When I run my tests, the Developer Tools panel is automatically open. Can I close it using Playwright? I don't need to see it.

enter image description here

canbax
  • 3,432
  • 1
  • 27
  • 44

1 Answers1

0

If you are using chromium.launch you can disable DevTools from showing with the following config.

    const browser = await chromium.launch({
        devtools: false
    });

More information in the Playwright documentation: https://playwright.dev/docs/api/class-browsertype#browser-type-launch-option-devtools