Step 1 - Create a new file under test folder
Step 2 - Add module ‘playwright/test’
const { test, expect } = require('@playwright/test');
** test, expect ------ functions from @playwright/test module
Playwright Test provides a test function to declare tests and expect function to write assertions
Step 3 - Create a test block - test(title, testFunction)
The keyword 'async' before a function makes the function return a promise
The keyword 'await' before a function makes the function wait for a promise
Step 4 - Run the test
npx playwright test --project=chromium --headed FirstTest.spec.js
npx playwright test runs all tests on all browsers in headless mode
npx playwright test MyTest1.spec.js runs a specific test file
npx playwright test MyTest1.spec.js MyTest2.spec.js runs the files specified
npx playwright test -g "test title" runs test with the title
npx playwright test --project=chromium runs on specific browser
npx playwright test --headed runs tests in headed mode
npx playwright test --debug debug tests
npx playwright test example.spec.js --debug debug specific test file
#########################
Udemy Courses:
#########################
Manual Testing+Agile with Jira Tool
*********************************
► https://shorturl.at/xNXZ4
Selenium with Java+Cucumber
*****************************
► https://shorturl.at/aIKMW
Selenium with Python & PyTest
*****************************
► https://shorturl.at/ELW09
Selenium with python using Robot framework
************************************
► https://shorturl.at/bcDPZ
API Testing(Postman, RestAssured & SoapUI)
************************************
► https://shorturl.at/uAWY7
Web & API Automation using Cypress with Javascript
***********************************
► https://rb.gy/4uum2n
Playwright with Javascript
***********************
► https://shorturl.at/gALZ1
Jmeter-Performance Testing
************************
► https://rb.gy/ocj7r2
SDET Essencials(Full Stack QA)
*************************
► https://rb.gy/hlnf2v
Appium-Mobile Automation Testing
*****************************
► https://rb.gy/wmzv64
Java Collections
*****************
► https://bit.ly/3S66ezE
Python Programming
*********************
► https://urlis.net/gdsfpb0s
Cucumber BDD Framework
****************************
► https://bit.ly/3F7d69r
Protractor with Javascript
***************************
► https://urlis.net/4uddm1qb
####################################
Youtube Playlists:
####################################
Manual Testing & Agile
*******************
► https://bit.ly/3ujvaYa
► https://bit.ly/3OYzxQj
SQL
****
► https://bit.ly/3R6XjeG
► https://bit.ly/3nE0a1s
► https://bit.ly/3IeKuuJ
linux & Shell Scripting
******************
► https://bit.ly/3up1Z6a
► https://bit.ly/3nzvGxx
Java
*****
► https://bit.ly/3R9QfOs
► https://bit.ly/3AoRMKM
► https://bit.ly/3IbTTDn
► https://bit.ly/3ybXInv
► https://bit.ly/3yCoHdw
Selenium With Java+Cucumber
********************************
► https://bit.ly/3P2FMm4
► https://bit.ly/3yhiIt4
► https://bit.ly/3uokzet
► https://bit.ly/3a7XIND
► https://bit.ly/3umN2S9
► https://bit.ly/3aar7GW
► https://bit.ly/3y9kD2S
► https://bit.ly/3uhLskn
Python
*******
► https://bit.ly/3agNgU0
► https://bit.ly/3NJNnoy
► https://bit.ly/2CTQ4mR
► https://bit.ly/3OIYWh1
Selenium With Python,Pytest&Behave
***************************************
► https://bit.ly/3OHHoC9
► https://bit.ly/3IeNLdv
► https://bit.ly/2J4tPeT
► https://bit.ly/3ydSkAq
Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************
► https://bit.ly/3nUvlpr
► https://bit.ly/3nUvE3z
API Testing (Postman,SoapUi,&Rest Assured)
**********************************************
► https://bit.ly/3OXacWY
► https://bit.ly/3yh0UhE
► https://bit.ly/3nC9DWQ
► https://bit.ly/3yGfhNS
► https://bit.ly/3OJa11H
► https://bit.ly/3P2slCC
Mobile App Testing Appium
****************************
► https://bit.ly/3Al49HG
Performance Testing Jmeter
*******************************
► https://bit.ly/3nz4fE7
Maven,Jenkins,Git,Github,CI/CD
*******************************
► https://bit.ly/3P16HPj
► https://bit.ly/3yhlUVA
► https://bit.ly/3afYfwT
► https://bit.ly/3yGzweG
► https://bit.ly/3yF73Ws
► https://bit.ly/3NCOmH7
SQL,DB Testing&ETL,Bigdata
*******************************
► https://bit.ly/3NKOcNY
► https://bit.ly/3OVpDyI
► https://bit.ly/3NEvUy0
► https://bit.ly/3IryxlT
► https://bit.ly/3RkWBLh
JavaScript Based Automation Tools
********************************
► https://bit.ly/3nUx51X
► https://bit.ly/3AqI6Q0
► https://bit.ly/3yeurbT
► https://bit.ly/3ujzpTK
Selector Hub Tools
********************
►https://rb.gy/h3h424
GraphQL
*********
► https://rb.gy/sj3gys
Cypress API Testing
********************
► https://shorturl.at/fjKPX
Cypress Web Testing
**********************
► https://shorturl.at/agjlK
Playwright with Javascipt
*********************
► https://shorturl.at/adSTY
Watch video Playwright with Javascript | How To Create and Run Tests | Part 3 online without registration, duration hours minute second in high quality. This video was added by user SDET- QA 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 62,757 once and liked it 541 people.