This image provides you an execution environment for the selenium framework of the python language.
814
This image provides you an execution environment for the selenium framework of the python language.
It includes the chromedriver and the chromium engine.
Link to the docs of Selenium to Python : https://selenium-python.readthedocs.io/
Make sure your python script contains the options to run in headless mode.
Example :
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
options = Options()
options.add_argument("--headless") # Runs Chrome in headless mode.
options.add_argument('--no-sandbox') # Bypass OS security model
options.add_argument('start-maximized')
options.add_argument('disable-infobars')
options.add_argument("--disable-extensions")
driver = webdriver.Chrome(options=options, executable_path='chromedriver')
docker run -tid -v <path containing your scripts>:/home/selenium --name <name of container> anomyn/selenium-python:<tag>
docker exec <name of container> python <your script>
Content type
Image
Digest
sha256:dc8cf058d…
Size
255 MB
Last updated
about 4 years ago
docker pull anomyn/selenium-python