pub async fn save_session(page: &PageHandle) -> Result<SessionSnapshot>Expand description
Capture the current session state from page.
Saves all cookies visible to the page’s origin and the full localStorage
contents.
§Errors
Returns a CDP error if the cookie fetch or localStorage eval fails.