Playwright Beginner Tutorial 2 | How to install

Published: 30 August 2022
on channel: Automation Step by Step
163,554
1.4k

▬ ALL FREE COURSES ► https://automationstepbystep.com/
▬ ASK RAGHAV ► https://bit.ly/2CoJGWf
QUIZ - https://forms.gle/UMhid4JwJDB1fmVUA

00:00 Introduction
00:50 Prerequisites
04:33 How to install Playwright
05:02 Option 1 - using node commands
12:35 Playwright project structure
18:34 Option 1 - using vs code extension
25:20 Outro

Visual Studio Code ► https://bit.ly/2V15yvt
Prerequisites
Node JS
node -v npm -v
IDE ( VS Code )

Install using command as npm package

Step 1 - Create a new folder and open in VS Code
Step 2 - Goto Terminal and run command - npm init playwright@latest
Step 3 - Following will be added
package.json - node project management file
playwright.config.js - Configuration file
tests folder - basic example test
tests-examples folder - detailed example tests
.gitignore - to be used during git commit and push
playwright.yml - to be used during ci cd pipeline (github workflows)
Step 4 - Check playwright added - npm playwright -v
Step 5 - Check playwright command options - npx playwright -h

Using VS Code extension

Step 1 - Create a new folder and open in VS Code
Step 2 - Goto Extensions section and install Playwright extension from Microsoft
Step 3 - Goto View - Command Palette and type playwright - select install playwright
Step 4 - Select the browsers and click ok
Step 5 - It will install the libraries and create the project folders

#playwright #automation #testing

CI CD DEVOPS
JENKINS BEGINNER ► https://bit.ly/2MIn8EC
JENKINS TIPS & TRICKS ►https://bit.ly/2LRt6xC
JENKINSFILE ► https://bit.ly/3JSMSZ7
DOCKER ► https://bit.ly/2MInnzx
KUBERNETES ► http://bit.ly/2MJIlMK

UI TESTING
SELENIUM BEGINNERS ► https://bit.ly/2MGRS8K
SELENIUM JAVA FRAMEWORK ► https://bit.ly/2N9xvR6
SELENIUM PYTHON ► https://bit.ly/2oyMp5x
SELENIUM TIPS ► https://bit.ly/2owxc50
SELENIUM BUILDER ► https://bit.ly/2MKNtlq
SELENIUM 4 ► https://bit.ly/3AiJOlP

KATALON STUDIO ► https://bit.ly/2wARFdi
ROBOT FRAMEWORK with RIDE ► https://bit.ly/2Px6Ue9
ROBOT FRAMEWORK with Eclipse► http://bit.ly/2N8DZxb
PROTRACTOR ► http://bit.ly/2KtqVkU
ACCELQ ► https://bit.ly/3PlsAsh
TEST PROJECT ► http://bit.ly/2DRNJYE
CUCUMBER BDD ► https://bit.ly/3Cnno4z
CYPRESS ► https://bit.ly/3PpEukM
XPATH & WEB LOCATORS ► https://bit.ly/3PpEvoQ

API TESTING
WEB SERVICES (API) ► https://bit.ly/2MGafL7
SOAPUI ► https://bit.ly/2MGahmd
POSTMAN ► https://bit.ly/2wz8LrW
POSTMAN 2022 ► https://bit.ly/3JWm4qX
JMETER API TESTING ► https://bit.ly/3AgVPar
KATALON STUDIO API ► https://bit.ly/2BwuCTN
REST ASSURED ► https://bit.ly/3zUdhRD
KARATE API ► https://bit.ly/3w3H5Ku
API MOCKING ► https://bit.ly/3bYPsjS

MOBILE TESTING
APPIUM ► https://bit.ly/2ZHFSGX
MOBILE TESTING ►https://bit.ly/2PxpeUv

PERFORMANCE TESTING
JMETER BEGINNER ► https://bit.ly/2oBbtIU
JMETER INTERMEDIATE ► https://bit.ly/2oziNVB
JMETER ADVANCED ► https://bit.ly/2Q22Y6a
JMETER TIPS & TRICKS ► https://bit.ly/2NOfWD2
GATLING ► https://bit.ly/3QrWfkV

IDE
ECLIPSE ► https://bit.ly/3AnRhQP
INTELLIJ IDEA ► https://bit.ly/3AnyDZ8

PROGRAMMING
JAVA BEGINNERS ► https://bit.ly/2PVUcXs
JAVA TIPS & TRICKS ► https://bit.ly/2CdcDnJ
GROOVY ► https://bit.ly/2FvWV5C
JAVASCRIPT ► http://bit.ly/2KJDZ8o
TYPESCRIPT ► https://bit.ly/3dvJBmz
PYTHON ► http://bit.ly/2Z4iRye

BUILD TOOLS
MAVEN ► https://bit.ly/2NJdDRS
GRADLE ► http://bit.ly/30l3h1B

SOURCE CODE MANAGEMENT
GIT & GITHUB ►https://bit.ly/2Q1pagY
GITLAB ► http://bit.ly/2kQPGyQ

CLOUD SERVICES
BROWSERSTACK ► https://bit.ly/3w7kxZn
SAUCELABS ► https://bit.ly/3w7kAo1
LAMBDATEST ► https://bit.ly/3C6TBwM

JSON ► https://bit.ly/3w450tq
XML ► https://bit.ly/3PqRneH

VIRTUALIZATION ► http://bit.ly/2SItIL9

MOCK INTERVIEWS ► https://bit.ly/3QGwwVJ
SUNDAY SPECIAL ► https://bit.ly/2wB23BO

GITHUB PROJECTS ► https://github.com/Raghav-Pal/
STORIES BY RAGHAV ► https://automationstepbystep.com/stor...

Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you

You can support my mission for education by sharing this knowledge and helping as many people as you can

If my work has helped you, consider helping any animal near you, in any way you can

NEVER STOP LEARNING
Raghav Pal


Watch video Playwright Beginner Tutorial 2 | How to install online without registration, duration hours minute second in high quality. This video was added by user Automation Step by Step 30 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 163,554 once and liked it 1.4 thousand people.