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