This is created based on Playwright course from Test Automation University by instructor Ixchel Meza
Download nodejs + how to install nodejs
Execute in terminal:
npm init -y
npm i -D playwright
npm install -D jest
npm i -D @applitools/eyes-playwright
npm test
! In order for jest
to ignore other test files (from tests folder), updated package.json
:
"jest":{
"testPathIgnorePatterns":["/tests/"]
},
- Playwright course
- Docs Playwright: Page Object Models
- Page Object Models - Selenium docs
- How to use Promises
- Template Literals
Extra tool:
Playwright CLI:
npx playwright codegen
After launching Playwright Inspector => choose Library (in order to generate js code)