docs(codegen): fix broken example (#15858)

follow-up: 09debb4a55
This commit is contained in:
Max Schmitt 2022-07-21 23:41:59 +02:00 committed by GitHub
parent e6461270e5
commit 2de0624a5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ pwsh bin\Debug\netX\playwright.ps1 codegen --load-storage=auth.json my.web.app
If you would like to use codegen in some non-standard setup (for example, use [`method: BrowserContext.route`]), it is possible to call [`method: Page.pause`] that will open a separate window with codegen controls.
```js
const { chromium } = require('playwright/test');
const { chromium } = require('@playwright/test');
(async () => {
// Make sure to run headed.