Playwright Beginner Tutorial 5 | How To Record Tests
Automation Step by Step Automation Step by Step
511K subscribers
47,476 views
0

 Published On Sep 1, 2022

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

How to record test - Test Generator
Playwright comes with a tool - Codegen also called Test Generator
Can be used to record test and generate test scripts
It Opens 2 windows
A browser window to interacts with the website
Playwright Inspector window to record test

00:00 Intro

01:18 What is Codegen

02:14 Step 1 - Open terminal and run codegen npx playwright codegen

03:04 Step 2 - Check 2 windows open - Browser and Playwright Inspector

04:57 Step 3 - Record your test steps and check the test scripts getting created

06:43 Step 4 - Save the recorded script in a test file | Run and check

10:40 Can also add the url npx playwright codegen google.com

11:48 See all options npx playwright codegen --help

13:33 Screenshot moment

13:54 Record on a specific browser (default:chromium) npx playwright codegen --browser firefox

15:32 Record and save to a file npx playwright codegen --target javascript -o record_example.js

21:27 Set viewport - screen resolution (size) npx playwright codegen --viewport-size=800,600

22:52 Emulate devices npx playwright codegen --device="iPhone 11"

25:15 Emulate color scheme (if available) npx playwright codegen --color-scheme=dark

27:26 Screenshot moment

#playwright #automation #testing
▬▬ CI CD DEVOPS ▬▬

JENKINS BEGINNER ► https://bit.ly/2MIn8EC
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 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
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
GENERAL ► https://bit.ly/2PYdwmV
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
PERFORMANCE TESTING ► https://bit.ly/2wEXbLS
GATLING ► https://bit.ly/3QrWfkV

▬▬ IDE ▬▬
ECLIPSE ► https://bit.ly/3AnRhQP
INTELLIJ IDEA ► https://bit.ly/3AnyDZ8
Visual Studio Code ► https://bit.ly/2V15yvt

▬▬ PROGRAMMING ▬▬

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

▬▬ 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

▬▬ DATA FORMATS ▬▬

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

▬▬ MOCK INTERVIEWS ► https://bit.ly/3QGwwVJ ▬▬

▬▬ RAGHAV PAL ▬▬
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

show more

Share/Embed