Playwright Beginner Tutorial 10 | Slow Motion and Video Recording
ASK RAGHAV ►
QUIZ -
T I M E S T A M P S ►
00:00 *Intro*
00:52 *How to run tests in Slow Motion | How to Record Video*
Step 1 - Open config file and add option for slow motion and video recording
const config = {
use: {
video: ’on’,
launchOptions:{
slowMo: 1000
}
slowMo slows down Playwright operations by the specified milliseconds
video:
’on’ - Record video for each test
’off’ - Do not record video
’retain-on-failure’ - Record for each test, but remove from successful test runs
’on-first-retry’ - Record only when retrying a test for the first time
Step 2 - Save & Run
Step 3 - Check Video files will appear in the test-results folder
Note - SlowMo is a field in Class
...
#RaghavPal #playwright_how_to_decrease_speed_of_execution #playwright_slow_motion_execution #playwright_how_to_record_videos #playwright_in-built_features #playwright_test_execution_options #playwright_what_is_browser_context #playwright_step_by_step_beginner_tutorials_by_raghav_pal
20220909
ETFS_RMt4go