Tests to open the page, check landing page elements and do a simple search
- Runs only on chromium
- Support for headless and headed execution (run with --hedless for speed).
- Install python 3 Download Page
- Install playwright for Python (both module and browsers) see Installation guide
- Install the requirements in requirements.txt
python3 -m pip install -r requirements.txt
- For headed execution (see the browser)
python3 -m pytest --html=report.html --self-contained-html --headed tests.py
- For headless remove the --headed parameter
See on playwright.dev for examples and more detailed information.