java.lang.Object
org.openqa.selenium.devtools.v85.storage.Storage

@Beta public class Storage extends Object
  • 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

      public static org.openqa.selenium.devtools.Command<Void> trackCacheStorageForOrigin(String origin)
      Registers origin to be notified when an update occurs to its cache storage list.
    • trackIndexedDBForOrigin

      public static org.openqa.selenium.devtools.Command<Void> trackIndexedDBForOrigin(String origin)
      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

      public static org.openqa.selenium.devtools.Command<Void> untrackIndexedDBForOrigin(String origin)
      Unregisters origin from receiving notifications for IndexedDB.
    • cacheStorageContentUpdated

      public static org.openqa.selenium.devtools.Event<CacheStorageContentUpdated> cacheStorageContentUpdated()
    • cacheStorageListUpdated

      public static org.openqa.selenium.devtools.Event<String> cacheStorageListUpdated()
    • indexedDBContentUpdated

      public static org.openqa.selenium.devtools.Event<IndexedDBContentUpdated> indexedDBContentUpdated()
    • indexedDBListUpdated

      public static org.openqa.selenium.devtools.Event<String> indexedDBListUpdated()