Chrome 59 has cross-platform headless support
91–100 of 161 posts
Re: Chrome 59 has cross-platform headless support
#92I've been testing Chrome headless extensively for the past few months, and while it's a good step, but it's not stable for high-volume or even diverse set of webpages. Memory usage is pretty high, lot of heavy webpages result in crashes/hangs, there are many inconsistencies between features available in full version and headless, their debugging protocol has different APIs that work on headless/non-headless in Linux…
Run it with:
--js-flags="--max_old_space_size=500"
to force the VM to keep it GC'd below 500Chrome v55 was a 30% memory savings, before that I used 1GB containers.
It's not perfect, but I am definitely pushing high volume (multiple tabs, concurrent activity) and I am not having any significant stability issues and I am pushing diverse sets of webpages.
Re: Chrome 59 has cross-platform headless support
#93Re: Chrome 59 has cross-platform headless support
#94Thank you.
Re: Chrome 59 has cross-platform headless support
#95This is fantastic. I'm using a combination of Chrome and PhantomJS for karma testing right now, for https://github.com/paypal/paypal-checkout and https://github.com/krakenjs/xcomponent . There are hundreds of tests opening up hundreds of iframes and popup windows, and sending a lot of cross-window messages, and that ends up being really memory hungry. Chrome deals pretty well with garbage collection, so long as I'm c…
*Yeah I know phantomjs is more cool these days but phantom doesn't support windows height so there's that.
Re: Chrome 59 has cross-platform headless support
#96Any way of scripting this to automate button clicks etc? I use PhantomJS for this now but found it to be incredibly unstable for complex pages.
Not headless, but ideally suited for automating complex websites (date controls, etc).
Re: Chrome 59 has cross-platform headless support
#97Can somebody explain to me what is this good for? Thank you.
Re: Chrome 59 has cross-platform headless support
#98I've been testing Chrome headless extensively for the past few months, and while it's a good step, but it's not stable for high-volume or even diverse set of webpages. Memory usage is pretty high, lot of heavy webpages result in crashes/hangs, there are many inconsistencies between features available in full version and headless, their debugging protocol has different APIs that work on headless/non-headless in Linux…
I've been successfully using Chrome headless in a 500MB Docker container for dumping the DOM for https://www.prerender.cloud/ for months (rendering a large variety of sites without restarts for weeks at a time) Run it with: --js-flags="--max_old_space_size=500" to force the VM to keep it GC'd below 500 Chrome v55 was a 30% memory savings, before that I used 1GB containers. It's not perfect, but I am definitely pushin…
Thanks.
Re: Chrome 59 has cross-platform headless support
#99Would this run as a chrome driver for Selenium? What is needed to make this work with Selenium?
customLaunchers: { chrome_headless: { base: 'Chrome', flags: ['--headless'] } }
I've not tested that yet but I can't really see a reason why it wouldn't work.
Re: Chrome 59 has cross-platform headless support
#100Doesn't seem to work on OSX. Connecting to debug port from a different chrome brings up an empty page. Running Version 59.0.3069.0 (Official Build) canary (64-bit)