Sign inSign up

dpet23/selenium

By dpet23

Updated over 7 years ago

Web testing using Python 3 and Selenium

Image
0

10K+

dpet23/selenium repository overview

Selenium

Docker Stars Docker Pulls Image Layers Image Size

Web testing using Python 3 and Selenium


Supported Tags
  • latest

View on Docker Hub


Build Info
  • Based on: CentOS Linux

  • Packages installed:

  • Repositories installed:

    • Extra Packages for Enterprise Linux (EPEL)
    • IUS community repository
    • Google Chrome stable

Docker Pull Command
docker pull dpet23/selenium

Example Usage
  1. Clone the repository, build the Docker image, and create a container

    docker build -t dpet23/selenium:latest .
    docker create -it --name selenium dpet23/selenium
    
  2. Copy the test Python scripts into the container

    docker cp ./tests/. selenium:/tmp/
    
  3. Run the container

    docker start -ai selenium
    
  4. Run a test script in the container

    python3 /tmp/Chrome-headless.py
    

    The expected output is:

    =====[ START - CHROME ]=====
    Page title: "Welcome to Python.org"
    =====[  END - CHROME  ]=====
    
  5. Clean up

    exit  # from the container
    docker stop selenium
    docker rm -v selenium
    docker rmi dpet23/selenium
    

Tag summary

Content type

Image

Digest

Size

635.9 MB

Last updated

over 7 years ago

docker pull dpet23/selenium