filmov
tv
Playwright Beginner Tutorial 5 | How To Record Tests

Показать описание
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
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*
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 ▬▬
▬▬ UI TESTING ▬▬
▬▬ API TESTING ▬▬
▬▬ MOBILE TESTING ▬▬
▬▬ PERFORMANCE TESTING ▬▬
▬▬ IDE ▬▬
▬▬ PROGRAMMING ▬▬
▬▬ BUILD TOOLS ▬▬
▬▬ SOURCE CODE MANAGEMENT ▬▬
▬▬ CLOUD SERVICES ▬▬
▬▬ DATA FORMATS ▬▬
▬▬ RAGHAV PAL ▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
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
Комментарии