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

Method get

integration/utils.py:86–97  ·  view source on GitHub ↗

Get a key from local storage. Args: key: The key to get. Returns: The value of the key.

(self, key)

Source from the content-addressed store, hash-verified

84 )
85
86 def get(self, key) -> str:
87 """Get a key from local storage.
88
89 Args:
90 key: The key to get.
91
92 Returns:
93 The value of the key.
94 """
95 return self.driver.execute_script(
96 "return window.localStorage.getItem(arguments[0]);", key
97 )
98
99 def set(self, key, value) -> None:
100 """Set a key in local storage.

Callers 15

__getitem__Method · 0.95
test_tableFunction · 0.45
test_submitFunction · 0.45
test_client_side_stateFunction · 0.45
test_event_chain_on_loadFunction · 0.45
xvfbFunction · 0.45
test_on_load_navigateFunction · 0.45
extract_stats_from_jsonFunction · 0.45
mainFunction · 0.45
get_productFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_tableFunction · 0.36
test_submitFunction · 0.36
test_client_side_stateFunction · 0.36
test_event_chain_on_loadFunction · 0.36
xvfbFunction · 0.36
test_on_load_navigateFunction · 0.36
test_update_from_envFunction · 0.36
test_mutable_dictFunction · 0.36