How do I build Playwright from source and enable the playwright codegen feature with multiple selectors?

Just chiming in with something that tripped me up when I built Playwright from source: codegen enhancements like multiple selector support are sometimes version-locked to browser builds too.

So even if you build the CLI from source, if you’re still pointing to a previously downloaded browser bundle, you won’t see all the new features. After building, I forced a fresh browser install with:

npx playwright install

And made sure to delete the .playwright cache folder. After that, the codegen started acting as expected with all the selector options. It’s one of those subtle things that isn’t obvious unless you’ve run into it before. Hope this helps!