mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
Allows autocomplete on the arg passed to the init script
```ts
await page.addInitScript((arg) => {
window.localStorage.setItem('init_user_state', JSON.stringify(arg.initUserState)) // arg was previously 'any'
}, {
initUserState: { foo: 'bar' },
})
```
playwright-core
This package contains the no-browser flavor of Playwright.