- This script automates end-to-end testing of the official Avast website
- This project demonstrates how to use Playwright for automated end-to-end testing
- installation
pip install -r requirements.txt
- To install Playwright, you can also visit their official docs
- This script is intended for educational and demonstration purposes only
- It serves as an example of using Playwright for end-to-end testing of a real website
- The purpose of this test is to simulate and verify basic user interactions such as:
- Verifying that the cookie banner is hidden after acceptance
- Ensuring the Free Download button is visible and functional
- Checking that navigation buttons redirect to the correct pages
- Validating that key icons include appropriate alt text for accessibility
-
Run the following command to execute all tests:
pytest
-
Run the following command to execute desktop tests:
pytest -m desktoptest
-
Run the following command to execute android and ios tests:
pytest -m "not desktoptest"
-
Run the following command to run Playwright in headed mode:
pytest --headed
-
Run the following command to see prints:
pytest -s
-
Run the following command to run record of the browser session:
pytest --tracing=on
- If you find any issue, please don't hesitate to report it via Issues
- If you have an idea to improve this game, please don't hesitate to create pull request via Pull requests
- Thanks to all 💚
- This project is not affiliated with or endorsed by Avast Software.