Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 windows

and 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)