Skip to navigation

loadState

Referenced In

Fields

FieldTypeDescriptionDefault
loadStateone of:
- string
- object(Load state (detailed))
Required. Load the cookies and localStorage saved by saveState, or by Playwright’s storageState, into the open site. Open the site with goTo first.—

Examples

{
"loadState": "auth.json"
}
{
"loadState": {
"path": "auth.json",
"directory": "../.auth"
}
}