Gets the store of the give type for the page. @param storageType the type @param page the page @return the store
(final Type storageType, final Page page)
| 52 | * @return the store |
| 53 | */ |
| 54 | public Map<String, String> getStore(final Type storageType, final Page page) { |
| 55 | return switch (storageType) { |
| 56 | case LOCAL_STORAGE -> getLocalStorage(page.getUrl()); |
| 57 | case SESSION_STORAGE -> getSessionStorage(page.getEnclosingWindow()); |
| 58 | }; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Gets the local storage (map). |
no test coverage detected