- Download and install Python 3.x
- If it is already installed, check in terminal:
python --version
- Make sure to have the latest pip version installed
python.exe -m pip install --upgrade pip
- Install the pytest playwright plugin
pip install pytest-playwright
- Install the required browsers (chromium, firefox, webkit)
playwright install
Credentials used in tests need to be set as environment variables.
In order to see the list of tests:
pytest --collect-only
By default tests will be run on chromium, in headless mode:
pytest
Using pytest CLI options can choose another browser and headed mode:
pytest --browser webkit --headed
Run only one test suite
pytest <test_file>.py --headed
Run all tests from root
python -m pytest