Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harsh-valecha/playwright_pytest_automation
This is a project to demonstrate playwright and pytest automation framework
https://github.com/harsh-valecha/playwright_pytest_automation
Last synced: about 2 months ago
JSON representation
This is a project to demonstrate playwright and pytest automation framework
- Host: GitHub
- URL: https://github.com/harsh-valecha/playwright_pytest_automation
- Owner: harsh-valecha
- Created: 2024-10-17T05:23:30.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T16:04:41.000Z (2 months ago)
- Last Synced: 2024-10-25T13:34:47.609Z (2 months ago)
- Language: Python
- Size: 6.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Pytest playwright Web Automation Framework
## Features
1. Page Object Model
2. Screenshot on Test Failure
3. Parallel execution of testcases
4. Automatic Waits
5. Debugging using playwright debugger
6. Recording Test scripts Preparation using playwright's codegen feature
7. Easily find Web elements using playwright's pick locator feature
8. HTML Reporting with allure report
9. Data driven testing with database connectivity
10. Dynamic Elements handling
11. JQuery UI Elements handling
12. Interacting with multiple windowsand many more ....
The Demo illustrated uses this website -
1. https://katalon-demo-cura.herokuapp.com/
2. https://the-internet.herokuapp.com/### Using playwright's codegen feature to locate webelements and record test scripts -
Command to run codegen -
```aiignore
(.venv) PS C:\Harsh_Personal\Automation\playwright_pytest_automation> playwright codegen https://katalon-demo-cura.herokuapp.com/
```Command to generate Allure test report in project directory-
```aiignore
allure generate allure-results --clean -o allure-report
```Using Pick Locator -
![img.png](img.png)Locator displayed in playwright's inspector locator tab-
![img_1.png](img_1.png)Screenshot on Failure -
![img_2.png](img_2.png)File Structure Overview -
![file_structure_overview.png](file_structure_overview.png)Debugging Tests (by applying brekpoint
using page.pause() and resume , stepover and pause tools from playwright debugger menu)
![img_3.png](img_3.png)