A simple example of selenium test written in Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md
README.md
test_script.py

README.md

Selenium Template

A simple example of selenium test written in Python

Requirements

Basic requirements (for Mac):

  1. Homebrew

  2. Python

    $ brew install python
    
  3. Chromedriver

    $ brew install chromedriver
    

Setup

$ pip install selenium==3.8.0

Test run

$ git clone https://github.com/joyzoursky/selenium-template.git
$ cd selenium-template
$ python test_script.py

Running in docker image

$ git clone https://github.com/joyzoursky/selenium-template.git
$ cd selenium-template
$ docker run -it -v $(pwd):/usr/workspace joyzoursky/python-chromedriver:3.6-alpine3.7-selenium sh
/ # cd /usr/workspace
/usr/workspace # python test_script.py