How tahanima/playwright-python-test-automation-boilerplate works
Project type and purpose
• This is a Test Automation Boilerplate built in Python, leveraging Playwright for browser automation and Pytest as the test runner. It implements a Page Object Model (POM) pattern and a data‐driven approach to UI testing.
File structure
Top‐level directories and their roles:
• data/
– Holds Python modules that model test data as classes or structures (base_data.py, login_data.py).
• helper/
– Contains utility and manager classes: browser_manager (handles Playwright browser lifecycle), configuration_manager (loads config.properties), csv_parser (reads CSV test files), and misc utils.
• pages/
– Implements the POM: base_page (common page methods), login_page, products_page.
• resources/
– Static assets: config.properties and test_data (CSV files).
• tests/
– Pytest test cases (login_test.py) which drive the POM classes using test data.
README
• Confirms use of Python 3.10, Playwright, and Pytest.