Posts

Showing posts from February, 2026

Why I Wish I'd Discovered Playwright Codegen Sooner

I Stopped Writing Playwright Tests Manually Welcome back! i appreciate the fact we've had some new readers this week and for that im super grateful! im now beginning to get into the swing of playwright tests and no longer find it a chore to continue my learnings! This week we took a look at writing playweight tests using code gen. What a handy feature this is!  One command changed everything: npx playwright codegen 🚀 What happened: A browser popped up and started recording every click, every input, every action I made. The code just appeared in real-time. No more blank test files. No more guessing selectors. The Magic of Codegen It writes code while you browse. Click a button? Code appears. Fill a form? Already captured. Navigate pages? Handled. The "AB" assertion tool lets you assert against elements without writing code. You point, click, and Codegen generates it. 💡 The real win? Codegen teaches you how Playwright thinks. Better Locators, Instantly Before: Drowning in...