Expand description
WebStorage: per-origin localStorage / sessionStorage access.
Obtained via Page::local_storage /
Page::session_storage. Reads and
writes the current origin’s storage directly through the Page channel (not via
page.evaluate), matching playwright-python’s WebStorage.
page.goto("https://example.com", None).await?;
let storage = page.local_storage();
storage.set_item("token", "abc123").await?;
assert_eq!(storage.get_item("token").await?, Some("abc123".to_string()));Structs§
- WebStorage
- Read/write access to a page’s
localStorageorsessionStoragefor the current origin.
Enums§
- WebStorage
Kind - Which storage area a
WebStoragehandle targets.