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

Method keys

integration/utils.py:73–84  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

71 )
72
73 def keys(self) -> list[str]:
74 """Get all keys in local storage.
75
76 Returns:
77 A list of keys.
78 """
79 return self.driver.execute_script(
80 "var ls = window.localStorage, keys = []; "
81 "for (var i = 0; i < ls.length; ++i) "
82 " keys[i] = ls.key(i); "
83 "return keys; "
84 )
85
86 def get(self, key) -> str:
87 """Get a key from local storage.

Callers 15

__iter__Method · 0.95
test_add_page_set_routeFunction · 0.45
test_merge_importsFunction · 0.45
test_get_fieldsFunction · 0.45
test_complex_get_fieldsFunction · 0.45
test_class_varsFunction · 0.45
test_event_handlersFunction · 0.45
test_get_event_triggersFunction · 0.45

Calls

no outgoing calls

Tested by 11

test_add_page_set_routeFunction · 0.36
test_merge_importsFunction · 0.36
test_get_fieldsFunction · 0.36
test_complex_get_fieldsFunction · 0.36
test_class_varsFunction · 0.36
test_event_handlersFunction · 0.36
test_get_event_triggersFunction · 0.36
test_serialize_dataframeFunction · 0.36