Sign inSign up

txt3rob/headless-chromedriver

By txt3rob

Updated over 6 years ago

Headless Chrome Driver for selenium with forced User Agent for MAC

Image
0

1.1K

txt3rob/headless-chromedriver repository overview

Headless Chrome with Chromedriver

This contains a Dockerfile that runs Chrome in headless mode with Chromedriver so you can connect to it using Selenium or anything else that supports the WebDriver protocol (e.g. Codeception).

Run the image:

docker run -it -p:4444:4444 txt3rob/headless-chromedriver

Python example:

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

driver = webdriver.Remote('http://127.0.0.1:4444', DesiredCapabilities.CHROME)
driver.get('http://example.com');
driver.save_screenshot('example.png');

Tag summary

Content type

Image

Digest

Size

200.9 MB

Last updated

over 6 years ago

docker pull txt3rob/headless-chromedriver