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.
Asked
Active
Viewed 236 times
1
-
1Have you seen this, https://playwright.dev/docs/debug#pwdebug – Rippo Feb 03 '23 at 16:35
1 Answers
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

jhancock532
- 93
- 8