Docker image containing selenium (2.48
) and the google chrome driver (2.20
)
One liner: docker run -it -v /dev/shm:/dev/shm -p 4444:4444 danielfrg/selenium
NOTE: the /dev/shm mount is the recommended workaround for the chrome crash issue as per SeleniumHQ/docker-selenium
Selenium UI is available at: http://DOCKERHOST:4444/wd/hub/static/resource/hub.html
You should be able to click the "Create session" button and select "chrome"
Using the selenium
python library you can do like this
example