Example e2e tests written in Python
Switch branches/tags
Nothing to show
Clone or download
Latest commit 717228e Nov 7, 2018


Codeship Status for qualityshepherd/python-e2e-test-example

Python E2E Test Example

Example Selenium/Webdriver e2e tests (some quite silly) that aim to illustrate solutions for common issues when writing e2e tests

These Tests:

  • run python selenium e2e tests against an existing website
  • make use of a page object pattern
  • use pytest for most of the heavy lifting
  • run on Firefox or Chrome
  • run tests in parallel (via pytest-parallel (requires python3.6+)
  • run api tests using requests
  • run on merge on CI


  1. install pip: sudo easy_install pip
  2. install required packages: pip3 install -r requirements.txt
  3. download drivers and copy to your path (eg. /usr/local/bin)

Run Tests

  1. in Chrome (default): pytest
  2. in Firefox pytest --driver firefox
  3. in parallel pytest --workers 2