A simple example of selenium test written in Python
-
Python
$ brew install python
-
Chromedriver
$ brew install chromedriver
$ pip install selenium==3.8.0
$ git clone https://github.com/joyzoursky/selenium-template.git
$ cd selenium-template
$ python test_script.py
$ 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