Get an instance of the local storage helper. Args: driver: WebDriver instance. Yields: Local storage helper.
(driver: WebDriver)
| 87 | |
| 88 | @pytest.fixture() |
| 89 | def local_storage(driver: WebDriver) -> Generator[utils.LocalStorage, None, None]: |
| 90 | """Get an instance of the local storage helper. |
| 91 | |
| 92 | Args: |
| 93 | driver: WebDriver instance. |
| 94 | |
| 95 | Yields: |
| 96 | Local storage helper. |
| 97 | """ |
| 98 | ls = utils.LocalStorage(driver) |
| 99 | yield ls |
| 100 | ls.clear() |
| 101 | |
| 102 | |
| 103 | def test_login_flow( |