Test framework for automating tests on the Gumroad.com website using Playwright.
- Python 3.7+
git clone https://github.com/davidherrera83/playwright-test-framework.git
cd playwright-test-framework
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the required Python packages:
pip install -r requirements.txt
Install Playwright and the necessary browser binaries:
pip install playwright
playwright install
- Open VS Code.
- Go to File -> Open Folder and select the playwright-test-framework folder.
- Open a terminal in VS Code (Terminal -> New Terminal).
To run the tests, use the following command in the terminal:
pytest
This will execute all tests in the tests directory.
To run a specific test, use:
pytest tests/test_gumroad.py::test_gumroad_search_by_store
Replace test_gumroad_search_by_store with the name of the test you want to run.
- gumroad/: Contains the application-specific classes and methods.
- gumroad.py: Contains the GumroadApp class with methods for interacting with the Gumroad site.
- tests/: Contains test cases.
- test_gumroad.py: Contains test cases for the Gumroad site.
- conftest.py: Contains fixtures for the tests.
- requirements.txt: Lists the Python dependencies.
- README.md: This file.
This project is licensed under the MIT License. See the LICENSE file for details.