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

How are you controlling headless Chrome when it's running in a Docker? #28

Closed
vg-pulsepoint opened this issue Aug 8, 2017 · 2 comments

Comments

@vg-pulsepoint
Copy link

Most of the tutorials use the chromedriver to control chrome, which explicitly points to the binary file. How do you programmatically control Chrome when it runs remotely in a Docker?

@caryyu
Copy link

caryyu commented Aug 11, 2017

@justinribeiro
Copy link
Owner

justinribeiro commented Aug 11, 2017

I control Chrome through the container primarily via Chrome Debugging Protocol and port 9222. I do this via https://github.com/cyrus-and/chrome-remote-interface which you can script. To show this in action, I fired up the REPL in screenshot below:

image

If you're looking for Selenium WebDriver support, @yukinying has a version (https://github.com/yukinying/chrome-headless-browser-docker) that builds on top of the official docker-selenium image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants