setWebLifecycleState

suspend fun setWebLifecycleState(args: Page.SetWebLifecycleStateParameter, mode: CommandMode = CommandMode.DEFAULT)

Tries 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/


suspend fun setWebLifecycleState(state: String)

Tries 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/

Parameters

state

Target lifecycle state