Sign inSign up

qxf2rohand/python-selenium-chrome

By qxf2rohand

•Updated over 8 years ago

This is Qxf2's Image designed for running Python based selenium tests on different chrome versions

Image
0

10K+

qxf2rohand/python-selenium-chrome repository overview

This image includes:

You can use this image for running any python based selenium tests. You can use the regular docker run commands to create a container and just need to setup with selenium and other requirements which are needed to run your tests.**

Running the images

$ docker run -it python-selenium-chrome:chrome57

#Install Selenium $pip install Selenium

#and export display and enable Xvfb using following 2 commands: $export DISPLAY=:20 $Xvfb :20 -screen 0 1366x768x16 &

Building your own images:

If you want to build your own images using this Dockerfile for different versions of chrome you can use below command. $ docker build -t python-selenium-chrome:chrome57 --build-arg CHROME_DRIVER_VERSION=2.28 --build-arg CHROME_VERSION=57.0.2987.133 -f Dockerfile .

#the above command builds the image with a specified chrome version and chrome driver version.

Running your tests:

#contents of selenium_docker.py from selenium import webdriver

driver = webdriver.Chrome() driver.get("http://www.qxf2.com") print driver.title driver.quit()

Refer to our blog for more details - https://qxf2.com/blog/building-your-own-docker-images-for-different-browser-versions/⁠

Tag summary

Content type

Image

Digest

Size

512.1 MB

Last updated

over 8 years ago

docker pull qxf2rohand/python-selenium-chrome