{"id":21478004,"url":"https://github.com/xurten/python-pytest-playwright-training","last_synced_at":"2025-03-17T08:22:39.840Z","repository":{"id":63294952,"uuid":"525840192","full_name":"xurten/python-pytest-playwright-training","owner":"xurten","description":"This is a training repository for automated web testing using Python, Pytest, and Playwright.","archived":false,"fork":false,"pushed_at":"2024-01-23T17:01:40.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T17:56:27.653Z","etag":null,"topics":["automation","playwright","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xurten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-17T14:55:58.000Z","updated_at":"2023-10-16T14:27:43.000Z","dependencies_parsed_at":"2024-01-21T21:49:32.479Z","dependency_job_id":null,"html_url":"https://github.com/xurten/python-pytest-playwright-training","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fpython-pytest-playwright-training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fpython-pytest-playwright-training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fpython-pytest-playwright-training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xurten%2Fpython-pytest-playwright-training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xurten","download_url":"https://codeload.github.com/xurten/python-pytest-playwright-training/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997166,"owners_count":20380981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","playwright","python"],"created_at":"2024-11-23T11:16:14.816Z","updated_at":"2025-03-17T08:22:39.805Z","avatar_url":"https://github.com/xurten.png","language":"Python","readme":"# Python Pytest Playwright Training\nThis is a training repository for automated web testing using Python, Pytest, and Playwright.\n\n## Prerequisites\nTo use this repository, you need to have the following software installed on your machine:\n\n- Python 3.7 or higher\n- Node.js (required by Playwright)\n- Pytest (pip install pytest)\n- Playwright (pip install pytest-playwright)\n\n## Installation\n1. Clone the repository: git clone https://github.com/xurten/python-pytest-playwright-training.git\n2. Install the dependencies: pip install -r requirements.txt\n3. Download the correct version of the browser executable for your system (see here for details)\n4. Update the conftest.py file with the path to your browser executable.\n\n## Structure\nThis repository contains the following directories:\n\n- **pages**: This directory contains the Page Object Model (POM) classes that represent the pages of the tested website. Each file in this directory corresponds to a single web page, and defines a POM class for that page.\n- **tests**: This directory contains the test files. Each file in this directory corresponds to a single feature or scenario, and contains one or more test cases.\n- **utils**: This directory contains utility functions used by the tests.\n\n## Async version\nSee branch: async_version\n\n## Run the tests\n```python\npytest --headed --slowmo 1000 -n 6 --html=report.html --self-contained-html --capture=tee-sys -m regression\n```\nFor html report add:\n```python\n--template=html1/index.html --report=report.html\n```\n\n## Example tests results\n![image](https://user-images.githubusercontent.com/7273568/224503717-e861b105-7b73-4a5e-bae7-b3f43c22d72d.png)\n\n## Contributing\nIf you would like to contribute to this project, feel free to open a pull request or an issue. All contributions are welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxurten%2Fpython-pytest-playwright-training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxurten%2Fpython-pytest-playwright-training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxurten%2Fpython-pytest-playwright-training/lists"}