Back to Browse

Record Playwright scripts using Codegen

4.2K views
Dec 28, 2021
22:40

Goals: Learn the basics of using Playwright Codegen, including best practices to ship robust scripts to production. If you are a beginner, I’d recommend watching two previous videos on this channel: 1. Code-first Playwright intro tutorial on macOS: https://youtu.be/i-46PlHmP2g 2. Playwright selectors in-depth for beginners: https://youtu.be/Vp6ltXMw4kE Official Codegen docs: https://playwright.dev/docs/cli#generate-code Machine specs: MacBook Pro (13-inch, M1, 2020), macOS Monterey (12.0.1) Node version: v14.15.4 Playwright version: 1.17.1 You can find additional material on this and related topics on https://ragog.link Timestamps: 00:00 Intro & setup 01:08 Launching Codegen & recording 04:14 Iterating on the output script 13:51 Comparison with manual script 21:41 Outro

Download

1 formats

Video Formats

360pmp430.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Record Playwright scripts using Codegen | NatokHD