MCPcopy Create free account
hub / github.com/dot-agent/nextpy / clear

Method clear

integration/utils.py:129–131  ·  view source on GitHub ↗

Clear all local storage.

(self)

Source from the content-addressed store, hash-verified

127 self.driver.execute_script("window.localStorage.removeItem(arguments[0]);", key)
128
129 def clear(self) -> None:
130 """Clear all local storage."""
131 self.driver.execute_script("window.localStorage.clear();")
132
133 def __getitem__(self, key) -> str:
134 """Get a key from local storage.

Callers 5

local_storageFunction · 0.95
local_storageFunction · 0.95
test_login_flowFunction · 0.45
test_background_taskFunction · 0.45
test_client_side_stateFunction · 0.45

Calls

no outgoing calls

Tested by 5

local_storageFunction · 0.76
local_storageFunction · 0.76
test_login_flowFunction · 0.36
test_background_taskFunction · 0.36
test_client_side_stateFunction · 0.36