Playwright is a framework for Web Testing and Automation. It is built to enable cross-browser web automation that is reliable and fast. Playwright, also has its own test runner for end-to-end tests called Playwright Test.
- Clone the project
- Run
npm i
to install all the dependencies - Run
npx playwright test
to execute the tests - Run
npx playwright test tests/1-inputText.spec.ts
to execute a single test - To generate Allure HTML Reports:
- Run
npx playwright test --reporter=line,allure-playwright
- Run
npm run allure:generate
- Run
- How to install Playwright
- Text input with basic assertions in Playwright
- How to work with checkboxes in Playwright
- How to handle Javascript Alert, Confirm & Prompt in Playwright
- How to handle simple and nested iframes in Playwright
- How to handle Shadow DOM in Playwright
- How to create Allure HTML reports with Playwright
- How to automatically generate scripts with Playwright Inspector
- How to debug scripts using Playwright Inspector
- File Upload in Playwright
- Interesting things that you can do with Playwright Command Line Tools
- File Download in Playwright
- How to capture screenshots in Playwright
- How to execute HTML Document Methods in Playwright