Page.setWebLifecycleStateTries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/
| Name | Type | Description |
|---|---|---|
state | string | Target lifecycle state |
{
"id": 1,
"method": "Page.setWebLifecycleState",
"params": {
"state": "state-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.setWebLifecycleState', {"state": "state-value"});
console.log(result);