Skip to content

Commit

Permalink
test headless=old
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Feb 13, 2024
1 parent ea684ad commit 91046ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function initChromiumOptions(browserType: Browsers, acceptInsecureCerts: boolean
if (headlessBrowser === '1') {
// Using the new headless mode (instead of `options.headless()`)
// See: https://www.selenium.dev/blog/2023/headless-is-going-away/
options.addArguments('headless=new');
options.addArguments('headless=old');

// Use --disable-gpu to avoid an error from a missing Mesa library, as per
// See: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Expand All @@ -115,7 +115,7 @@ function initChromiumOptions(browserType: Browsers, acceptInsecureCerts: boolean

// Using the new headless mode (instead of `options.headless()`)
// See: https://www.selenium.dev/blog/2023/headless-is-going-away/
options.addArguments('headless=new');
options.addArguments('headless=old');

options.addArguments('disable-gpu', 'remote-debugging-port=9222');
}
Expand Down

0 comments on commit 91046ec

Please sign in to comment.