Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome recently flipped the default headless mode of --headless #3162

Closed
mdmintz opened this issue Sep 24, 2024 · 1 comment · Fixed by #3163
Closed

Chrome recently flipped the default headless mode of --headless #3162

mdmintz opened this issue Sep 24, 2024 · 1 comment · Fixed by #3163
Assignees
Labels
documentation external Outside SeleniumBase's scope. / Ask somewhere else.

Comments

@mdmintz
Copy link
Member

mdmintz commented Sep 24, 2024

Chrome recently flipped the default headless mode of --headless

There were details in https://developer.chrome.com/docs/chromium/headless about it.

When Chrome's newer headless mode came out, it was initialized via --headless=new.
They also renamed the old Chrome headless mode initiation to --headless=old, and for awhile, --headless pointed to that.

Now, --headless points to --headless=new in the options of Chromium 129, so there needs to be a way to use the old headless mode. Although the older headless mode is going to be phased out soon, it still works for the time being, and is actually a bit faster than the newer headless mode (although the newer headless mode more accurately represents how a real headed browser behaves, with some differences such as headless appearing in the User Agent string, etc).

I'll add a --headless1 option in SeleniumBase, which will initialize Chrome's old headless mode via --headless=old.
(At some point, Chrome may remove that old headless mode.)

There currently already exists:

  • --headless, which sets --headless as a Chrome option. (Depending on the Chrome version, it could be old or new.)
  • --headless2, which sets --headless=new as a Chrome option.

(If the backend is the same for all Chromium browsers, I'll also add --headless1 as a SeleniumBase Edge option.)

@mdmintz mdmintz added external Outside SeleniumBase's scope. / Ask somewhere else. documentation labels Sep 24, 2024
@mdmintz mdmintz self-assigned this Sep 24, 2024
@mdmintz
Copy link
Member Author

mdmintz commented Sep 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation external Outside SeleniumBase's scope. / Ask somewhere else.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant