MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / clear_local_storage

Method clear_local_storage

seleniumbase/fixtures/base_case.py:9550–9559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9548 )
9549
9550 def clear_local_storage(self):
9551 self.__check_scope()
9552 if not self.__is_valid_storage_url():
9553 return
9554 self.execute_script("window.localStorage.clear();")
9555 if self.recorder_mode:
9556 time_stamp = self.execute_script("return Date.now();")
9557 origin = self.get_origin()
9558 action = ["c_l_s", "", origin, time_stamp]
9559 self.__extra_actions.append(action)
9560
9561 def get_local_storage_keys(self):
9562 self.__check_scope()

Callers 5

delete_local_storageMethod · 0.95
clear_local_storageFunction · 0.80
go_to_swag_labsFunction · 0.80
test_todomvcMethod · 0.80
go_to_swag_labsFunction · 0.80

Calls 4

__check_scopeMethod · 0.95
execute_scriptMethod · 0.95
get_originMethod · 0.95

Tested by 1

test_todomvcMethod · 0.64