fix(chromium): --headless -> --headless=old

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-06-18 16:58:54 +02:00 committed by GitHub
parent 9c4fed4f53
commit b09dfe3e4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -319,7 +319,7 @@ export class Chromium extends BrowserType {
if (process.env.PLAYWRIGHT_CHROMIUM_USE_HEADLESS_NEW)
chromeArguments.push('--headless=new');
else
chromeArguments.push('--headless');
chromeArguments.push('--headless=old');
chromeArguments.push(
'--hide-scrollbars',