Skip to content

dpet23/selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published