Container for running Selenium tasks using Python and the latest Chrome and Firefox drivers.
6.9K
The image is built with the following dependencies:
docker
docker build -t selenium_docker .
docker run --privileged -p 4000:4000 -d -it selenium_docker
docker-compose
docker-compose stop && docker-compose build && docker-compose up -d
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
browser = webdriver.Firefox()
browser.get('https://www.google.com/')
print(browser.title)
browser.quit()
display.stop()
Detailed examples on how to use Firefox with custom profile or Google Chrome with desired options can be found in the source on Github.
Content type
Image
Digest
sha256:8eed8891e…
Size
590.9 MB
Last updated
over 3 years ago
docker pull hearthmates/dockselpy