Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zafir100100/web-automation-with-playwright
Our Playwright-based automated testing suite for the SauceDemo website includes tests for logging in functionality. It generates detailed test reports of the test execution.
https://github.com/zafir100100/web-automation-with-playwright
automation javascript playwright web-automation
Last synced: 28 days ago
JSON representation
Our Playwright-based automated testing suite for the SauceDemo website includes tests for logging in functionality. It generates detailed test reports of the test execution.
- Host: GitHub
- URL: https://github.com/zafir100100/web-automation-with-playwright
- Owner: zafir100100
- Created: 2023-07-02T08:34:03.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-10T05:30:58.000Z (over 1 year ago)
- Last Synced: 2024-11-11T02:21:54.413Z (3 months ago)
- Topics: automation, javascript, playwright, web-automation
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web-Automation-with-Playwright
## What is Automation?
Automation is the practice of using software tools and scripts to perform tasks that would typically require human intervention. In the context of software testing, automation involves using specialized tools to execute test cases and compare the actual outcomes with the expected results automatically.
## Why we use Playwright?
Playwright offers several compelling reasons for web automation:
Multi-Browser Support: Playwright supports multiple web browsers, including Chrome, Firefox, and WebKit. This enables you to run your tests on different browsers without modifying your codebase.
Powerful Cross-Browser API: Playwright provides a powerful and consistent API for automating web interactions across different browsers. You can easily simulate user actions, interact with DOM elements, and perform browser-specific operations.
Headless and Headful Modes: Playwright allows you to run tests in headless mode for faster execution or in headful mode for debugging and troubleshooting. You have the flexibility to choose the appropriate mode based on your needs.
Robust Wait and Retry Mechanism: Playwright's built-in wait and retry mechanism ensures that your tests wait for elements to appear or conditions to be met before proceeding. This reduces flakiness and enhances test reliability.
Accessibility Testing: Playwright includes extensive support for accessibility testing, allowing you to verify that your web applications are accessible to users with disabilities.
Overall, Playwright is a powerful and efficient tool for web automation that can help you to test your application more effectively and catch issues early in the development process.
## Technology used:
- Playwright
- Visual Studio Code
- Javascript## How to run this project
- Clone this project
- First install dependencies:
```npm install```
- Then run the test:
```npx playwright test```