🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    isp_data_pollution.py
    skipped 231 lines
    232 232   # https://sqa.stackexchange.com/questions/10466/how-to-clear-localstorage-using-selenium-and-webdriver
    233 233   if hasattr(self, 'session'):
    234 234   self.session.delete_all_cookies()
    235  - self.session.execute_script('window.localStorage.clear();')
    236  - self.session.execute_script('window.sessionStorage.clear();')
     235 + try:
     236 + self.session.execute_script('window.localStorage.clear();')
     237 + self.session.execute_script('window.sessionStorage.clear();')
     238 + except Exception as e:
     239 + if self.debug: print(e)
    237 240   
    238 241   def get_blacklist(self):
    239 242   self.blacklist_domains = set()
    skipped 361 lines
Please wait...
Page is in error, reload to recover