- Depends on pytest-playwright
- pip install pytest-playwright
- pip install pytest-bdd
- playwright install
https://playwright.dev/python/docs/intro
See https://pypi.org/project/pytest-bdd/ for reporting options.
This test is using a standard page object model, where the selectors and functions are group inside a class.
Example is given with and without the bdd layer
Alternative format that uses files instead of objects to group the pages can be found here
pytest-xdist - used to run multiple tests at the same time pytest-html - for nice simple html report