MCPcopy
hub / github.com/reflex-dev/reflex / keys

Method keys

tests/integration/utils.py:260–271  ·  view source on GitHub ↗

Get all keys in local storage. Returns: A list of keys.

(self)

Source from the content-addressed store, hash-verified

258 )
259
260 def keys(self) -> list[str]:
261 """Get all keys in local storage.
262
263 Returns:
264 A list of keys.
265 """
266 return self.driver.execute_script(
267 f"var ls = window.{self.storage_key}, keys = []; "
268 "for (var i = 0; i < ls.length; ++i) "
269 " keys[i] = ls.key(i); "
270 "return keys; "
271 )
272
273 def get(self, key) -> str:
274 """Get a key from local storage.

Calls

no outgoing calls