In this video we have learnt about Playwright Automation Library built on top of Node.js. We have used Typescript for our test cases. We have also discussed about Assertions and Playwright Inspector.
Below commands we have used in the tutorial
Create package.json
npm init
Install Playwright TestRunner
npm i -D @playwright/test
Install Playwright Browsers
npx playwright install
Run all test cases
npx playwright test
Run all test cases in headed mode
npx playwright test --headed
Run all test cases in headed mode in Safari
npx playwright test --headed --browser=webkit
Run all test cases in headed mode in Chromium
npx playwright test --headed --browser=chromium
Run all test cases in headed mode in Firefox
npx playwright test --headed --browser=firefox
Run all test cases in a particular project(browser) in config
npx playwright test --headed --project=firefox
If headless:false is declared in config
npx playwright test --project=firefox
Run all test cases in a single file eg. example1.test.ts
npx playwright test parentPath/example1.test.ts --browser=firefox --headed
Run a test case with a particular title
npx playwright test -g "title of test case" --headed --browser=firefox
Run in debug mode
npx playwright test --debug
Open codegen and Playwright Inspector
npx playwright codegen https://www.google.com
Run test case with tag
npx playwright test --grep @tagName --headed --browser=firefox
playwright automation tutorial
playwright automation
playwright typescript
playwright automation training
playwright tutorial
playwright automation typescript
playwright assertions
playwright codegen
playwright course
playwright crash course
playwright config
playwright example
playwright framework
playwright for beginners
playwright fixtures
playwright full course
playwright global setup
playwright getting started
playwright headless
playwright headless false
playwright headless true
playwright hooks
playwright headed
playwright install
playwright inspector
playwright introduction
playwright interview
playwright install not working
playwright javascript
playwright js
playwright javascript tutorial
playwright js tutorial
playwright locator
playwright microsoft
playwright node js
playwright no tests found
playwright quickstart
playwright record and play
playwright selectors
playwright setup
playwright test
playwright typescript
playwright test runner
playwright testing tutorial
playwright ui testing
playwright udemy
playwright visual studio
playwright video
playwright with typescript
playwright with javascript
playwright 1.17
Below commands we have used in the tutorial
Create package.json
npm init
Install Playwright TestRunner
npm i -D @playwright/test
Install Playwright Browsers
npx playwright install
Run all test cases
npx playwright test
Run all test cases in headed mode
npx playwright test --headed
Run all test cases in headed mode in Safari
npx playwright test --headed --browser=webkit
Run all test cases in headed mode in Chromium
npx playwright test --headed --browser=chromium
Run all test cases in headed mode in Firefox
npx playwright test --headed --browser=firefox
Run all test cases in a particular project(browser) in config
npx playwright test --headed --project=firefox
If headless:false is declared in config
npx playwright test --project=firefox
Run all test cases in a single file eg. example1.test.ts
npx playwright test parentPath/example1.test.ts --browser=firefox --headed
Run a test case with a particular title
npx playwright test -g "title of test case" --headed --browser=firefox
Run in debug mode
npx playwright test --debug
Open codegen and Playwright Inspector
npx playwright codegen https://www.google.com
Run test case with tag
npx playwright test --grep @tagName --headed --browser=firefox
playwright automation tutorial
playwright automation
playwright typescript
playwright automation training
playwright tutorial
playwright automation typescript
playwright assertions
playwright codegen
playwright course
playwright crash course
playwright config
playwright example
playwright framework
playwright for beginners
playwright fixtures
playwright full course
playwright global setup
playwright getting started
playwright headless
playwright headless false
playwright headless true
playwright hooks
playwright headed
playwright install
playwright inspector
playwright introduction
playwright interview
playwright install not working
playwright javascript
playwright js
playwright javascript tutorial
playwright js tutorial
playwright locator
playwright microsoft
playwright node js
playwright no tests found
playwright quickstart
playwright record and play
playwright selectors
playwright setup
playwright test
playwright typescript
playwright test runner
playwright testing tutorial
playwright ui testing
playwright udemy
playwright visual studio
playwright video
playwright with typescript
playwright with javascript
playwright 1.17
- Category
- Web design

Be the first to comment