Contributing
Consumer guides live on the other pages. This note is for claiming a new Playwright channel
method when a suite or hub app needs it. Playwright pin bumps and pwBump live in the
repo README.
Extending the command allowlist
Chekhov claims a curated set of channel methods. Param ADTs in Commands.scala are
generated from the pinned protocol.yml. Do not edit generated field lists by hand.
Confirm the method exists:
ProtocolSurface.has("Channel", "method")or searchprotocol.ymlunder that channel’scommands:.Append
CommandSpec("Channel", "method", "CaseClassName")toproject/ProtocolCodegen.scala→commandAllowlist.Run
sbt pwCodegen(also part ofpwBump/pwVendor).Wire
PlaywrightDriver(and the public algebra if it is user-facing).Commit the allowlist change and regenerated sources together.
The storage cluster (storageState, cookies, webStorage*) is already claimed for hub apps.
ProtocolSurface.has("BrowserContext", "storageState")true