yukinying / chrome-headless-travis-build Goto Github PK
View Code? Open in Web Editor NEWContinuously building chrome headless shell and docker image.
Home Page: https://travis-ci.org/yukinying/chrome-headless-travis-build
License: MIT License
Continuously building chrome headless shell and docker image.
Home Page: https://travis-ci.org/yukinying/chrome-headless-travis-build
License: MIT License
It looks like the way to use port 9222 has changed from just hitting the https interface as described in #5.
Hi Albert,
Wow! thanks for this and chrome-headless-browser-docker. This is more a question than an issue:
I've successfully run chrome-headless-browser-docker
and connected to it on http://localhost:9222/ using chrome running in the host. This works in both windows and ubuntu hosts.
I have not managed to connect using chrome-headless
however. I can get as far as the start page i.e. Inspectable WebContents
but when I click on the link to try see whats going on in a headless tab I get a 404, whereas with chrome-headless-browser-docker
I see the page as expected.
I want to tinker with --no-scrollbars
--deterministic-fetch
and others.. I don't know if one can pass flags somehow via the docker command given the Dockerfile's hardcoded flags today.
That may be possible by adding a headless user and remove the --no-sandbox argument. Extra efforts would be required to see if it would cause another issues.
$ docker run -i -t --rm --name=chrome-headless -p=127.0.0.1:9222:9222 yukinying/chrome-headless
[0324/170440.952159:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale
[0324/170441.354799:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale
[0324/170442.135361:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale
is it not correctly built?
How do we use this with Selenium for headless browsing? I tried this via ipython:
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Remote(command_executor='http://localhost:9222/', desired_capabilities=DesiredCapabilities.CHROME)
but received this error:
WebDriverException: Message:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.