-
Notifications
You must be signed in to change notification settings - Fork 20
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
Headless Chrome updates #171
Comments
Download The current easiest way to get npx @puppeteer/browsers install chrome-headless-shell --path ~/.browsers Downloading chrome-headless-shell 130.0.6684.0 - 86.8 MB [====================] 100% 0.0s
[email protected] /Users/garrick/.browsers/chrome-headless-shell/mac_arm-130.0.6684.0/chrome-headless-shell-mac-arm64/chrome-headless-shell This outputs the path to the binary, which you can then use in the Sys.setenv(CHROMOTE_CHROME = "/Users/garrick/.browsers/chrome-headless-shell/mac_arm-130.0.6684.0/chrome-headless-shell-mac-arm64/chrome-headless-shell") At that point, |
Is there some reason that chromote can't use the new headless mode? What am I missing? |
chromote can use the new headless mode. I think Chrome intended for the new headless mode to be a drop-in replacement for the old headless mode but that hasn't been the case. There are many instances of differences and broken behavior between the two modes, the biggest of which is that you cannot simultaneously open headless and headfull Chrome instances on Windows. We'll benefit both from giving Chrome some time to work out these issues and from any testing with the new headless mode that we or chromote users can do in the mean time. |
Old headless mode was removed: https://developer.chrome.com/blog/removing-headless-old-from-chrome |
Probably related to this, on updated windows, I see some errors pointing to old headless mode (when testing with Chrome open):
I had to use System info
Thanks for sharing the lessons learned. |
@llrs-roche #187 describes the rest of the context. In short, v132 and later of Chrome no longer bundle old headless mode. You can use that option or update to the dev version of chromote. |
hi, I'm using chromote for testing on GitHub Actions, and I'm having the same isssue, Old Headless mode has been removed from the Chrome binary https://github.com/animint/animint2/actions/runs/12946454044/job/36111017361 I understand that this is already resolved if I can use the dev version of library(chromote) from this github repo. |
great thanks |
I'm opening this issue mostly to stash some things I've learned while debugging #170.
Chrome's headless mode was previously an entirely separate web browser from headful Chrome. Last year, Chrome introduced a new headless mode that uses the same browser implementation with the UI turned off, introduced as
--headless=new
. Old headless mode was previously available as--headless=old
or--headless
.Chrome is now in the process of transitioning the default value of
--headless
to--headless=new
.I haven't found an official statement saying that this change happened, but clearly
--headless
is now--headless=new
. At some point in the future,--headless=old
will be removed and users will be expected to use a separatechrome-headless-shell
binary, which is already available.launch_chrome()
, by way oflaunch_chrome_impl()
, forces--headless
chromote/R/chrome.R
Lines 175 to 180 in f030285
but we could ease the transition by allowing users to set this value themselves. We could:
Move
--headless
intodefault_chrome_args()
, but this makes it easy to accidentally forget to include the--headless
flag. OTOH, that might be desirable given that it is possible to use the Chrome DevTools Protocol to drive headful Chrome.Add
--headless
when launching Chrome only if--headless
or--headless=*
are not included inargs
.We should also test that chromote is compatible with
chrome-headless-shell
.The text was updated successfully, but these errors were encountered: