| skipped 364 lines |
365 | 365 | | try: |
366 | 366 | | @self.chromedriver_short_timeout |
367 | 367 | | def chromedriver_clear(): |
368 | | - | pass |
369 | | - | # Neither of these methods appear to work for chromedriver |
370 | | - | # self.driver.execute_script('window.localStorage.clear();') |
371 | | - | # self.driver.execute_script('window.sessionStorage.clear();') |
| 368 | + | self.driver.execute_script('window.localStorage.clear();') |
| 369 | + | self.driver.execute_script('window.sessionStorage.clear();') |
372 | 370 | | chromedriver_clear() |
373 | 371 | | except Exception as e: |
374 | 372 | | if self.debug: print(f'.execute_script() exception:\n{e}') |
| skipped 748 lines |