Class Storage
java.lang.Object
org.openqa.selenium.devtools.v85.storage.Storage
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Event<CacheStorageContentUpdated>static org.openqa.selenium.devtools.Event<String>static org.openqa.selenium.devtools.Command<Void>clearCookies(Optional<BrowserContextID> browserContextId) Clears cookies.static org.openqa.selenium.devtools.Command<Void>clearDataForOrigin(String origin, String storageTypes) Clears storage for origin.getCookies(Optional<BrowserContextID> browserContextId) Returns all browser cookies.static org.openqa.selenium.devtools.Command<Storage.GetUsageAndQuotaResponse>getUsageAndQuota(String origin) Returns usage and quota in bytes.static org.openqa.selenium.devtools.Event<IndexedDBContentUpdated>static org.openqa.selenium.devtools.Event<String>static org.openqa.selenium.devtools.Command<Void>setCookies(List<CookieParam> cookies, Optional<BrowserContextID> browserContextId) Sets given cookies.static org.openqa.selenium.devtools.Command<Void>trackCacheStorageForOrigin(String origin) Registers origin to be notified when an update occurs to its cache storage list.static org.openqa.selenium.devtools.Command<Void>trackIndexedDBForOrigin(String origin) Registers origin to be notified when an update occurs to its IndexedDB.static org.openqa.selenium.devtools.Command<Void>untrackCacheStorageForOrigin(String origin) Unregisters origin from receiving notifications for cache storage.static org.openqa.selenium.devtools.Command<Void>untrackIndexedDBForOrigin(String origin) Unregisters origin from receiving notifications for IndexedDB.
-
Constructor Details
-
Storage
public Storage()
-
-
Method Details
-
clearDataForOrigin
public static org.openqa.selenium.devtools.Command<Void> clearDataForOrigin(String origin, String storageTypes) Clears storage for origin. -
getCookies
public static org.openqa.selenium.devtools.Command<List<Cookie>> getCookies(Optional<BrowserContextID> browserContextId) Returns all browser cookies. -
setCookies
public static org.openqa.selenium.devtools.Command<Void> setCookies(List<CookieParam> cookies, Optional<BrowserContextID> browserContextId) Sets given cookies. -
clearCookies
public static org.openqa.selenium.devtools.Command<Void> clearCookies(Optional<BrowserContextID> browserContextId) Clears cookies. -
getUsageAndQuota
public static org.openqa.selenium.devtools.Command<Storage.GetUsageAndQuotaResponse> getUsageAndQuota(String origin) Returns usage and quota in bytes. -
trackCacheStorageForOrigin
Registers origin to be notified when an update occurs to its cache storage list. -
trackIndexedDBForOrigin
Registers origin to be notified when an update occurs to its IndexedDB. -
untrackCacheStorageForOrigin
public static org.openqa.selenium.devtools.Command<Void> untrackCacheStorageForOrigin(String origin) Unregisters origin from receiving notifications for cache storage. -
untrackIndexedDBForOrigin
Unregisters origin from receiving notifications for IndexedDB. -
cacheStorageContentUpdated
public static org.openqa.selenium.devtools.Event<CacheStorageContentUpdated> cacheStorageContentUpdated() -
cacheStorageListUpdated
-
indexedDBContentUpdated
-
indexedDBListUpdated
-