Get a key from local storage. Args: key: The key to get. Returns: The value of the key.
(self, key)
| 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. |
no outgoing calls