Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.
- Design Pattern: Page Object Model
- Playwright Report
- Authentication of Multiple Users
- Playwright for API testing
- Cloud Integration: Microsoft Playwright Testing
- Follow steps here: https://playwright.dev/docs/intro
- Create project:
npm init playwright@latest
- Run the tests:
npm playwright test
- Run the tests with specific config file:
npm playwright test -c {config filename}
- Run test with specific browser:
npm playwright test --project=chromium
- Run test with Show Browser:
npm playwright test --headed
- Run test with debug:
npm playwright test --debug
- Run test with trace:
npm playwright test --trace on
- Run test in UI Mode:
npm playwright test --ui
- Auto generate code:
npm playwright codegen
- Show report:
npm playwright show-report