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

@Beta public class Storage extends Object
  • Constructor Details

    • Storage

      public Storage()
  • Method Details

    • getStorageKeyForFrame

      public static org.openqa.selenium.devtools.Command<SerializedStorageKey> getStorageKeyForFrame(FrameId frameId)
      Returns a storage key given a frame id.
    • clearDataForOrigin

      public static org.openqa.selenium.devtools.Command<Void> clearDataForOrigin(String origin, String storageTypes)
      Clears storage for origin.
    • clearDataForStorageKey

      public static org.openqa.selenium.devtools.Command<Void> clearDataForStorageKey(String storageKey, String storageTypes)
      Clears storage for storage key.
    • 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.
    • overrideQuotaForOrigin

      @Beta public static org.openqa.selenium.devtools.Command<Void> overrideQuotaForOrigin(String origin, Optional<Number> quotaSize)
      Override quota for the specified origin
    • 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.
    • trackCacheStorageForStorageKey

      public static org.openqa.selenium.devtools.Command<Void> trackCacheStorageForStorageKey(String storageKey)
      Registers storage key 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.
    • trackIndexedDBForStorageKey

      public static org.openqa.selenium.devtools.Command<Void> trackIndexedDBForStorageKey(String storageKey)
      Registers storage key 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.
    • untrackCacheStorageForStorageKey

      public static org.openqa.selenium.devtools.Command<Void> untrackCacheStorageForStorageKey(String storageKey)
      Unregisters storage key 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.
    • untrackIndexedDBForStorageKey

      public static org.openqa.selenium.devtools.Command<Void> untrackIndexedDBForStorageKey(String storageKey)
      Unregisters storage key from receiving notifications for IndexedDB.
    • getTrustTokens

      @Beta public static org.openqa.selenium.devtools.Command<List<TrustTokens>> getTrustTokens()
      Returns the number of stored Trust Tokens per issuer for the current browsing context.
    • clearTrustTokens

      @Beta public static org.openqa.selenium.devtools.Command<Boolean> clearTrustTokens(String issuerOrigin)
      Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
    • getInterestGroupDetails

      @Beta public static org.openqa.selenium.devtools.Command<Map<String,Object>> getInterestGroupDetails(String ownerOrigin, String name)
      Gets details for a named interest group.
    • setInterestGroupTracking

      @Beta public static org.openqa.selenium.devtools.Command<Void> setInterestGroupTracking(Boolean enable)
      Enables/Disables issuing of interestGroupAccessed events.
    • setInterestGroupAuctionTracking

      @Beta public static org.openqa.selenium.devtools.Command<Void> setInterestGroupAuctionTracking(Boolean enable)
      Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.
    • getSharedStorageMetadata

      @Beta public static org.openqa.selenium.devtools.Command<SharedStorageMetadata> getSharedStorageMetadata(String ownerOrigin)
      Gets metadata for an origin's shared storage.
    • getSharedStorageEntries

      @Beta public static org.openqa.selenium.devtools.Command<List<SharedStorageEntry>> getSharedStorageEntries(String ownerOrigin)
      Gets the entries in an given origin's shared storage.
    • setSharedStorageEntry

      @Beta public static org.openqa.selenium.devtools.Command<Void> setSharedStorageEntry(String ownerOrigin, String key, String value, Optional<Boolean> ignoreIfPresent)
      Sets entry with `key` and `value` for a given origin's shared storage.
    • deleteSharedStorageEntry

      @Beta public static org.openqa.selenium.devtools.Command<Void> deleteSharedStorageEntry(String ownerOrigin, String key)
      Deletes entry for `key` (if it exists) for a given origin's shared storage.
    • clearSharedStorageEntries

      @Beta public static org.openqa.selenium.devtools.Command<Void> clearSharedStorageEntries(String ownerOrigin)
      Clears all entries for a given origin's shared storage.
    • resetSharedStorageBudget

      @Beta public static org.openqa.selenium.devtools.Command<Void> resetSharedStorageBudget(String ownerOrigin)
      Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
    • setSharedStorageTracking

      @Beta public static org.openqa.selenium.devtools.Command<Void> setSharedStorageTracking(Boolean enable)
      Enables/disables issuing of sharedStorageAccessed events.
    • setStorageBucketTracking

      @Beta public static org.openqa.selenium.devtools.Command<Void> setStorageBucketTracking(String storageKey, Boolean enable)
      Set tracking for a storage key's buckets.
    • deleteStorageBucket

      @Beta public static org.openqa.selenium.devtools.Command<Void> deleteStorageBucket(StorageBucket bucket)
      Deletes the Storage Bucket with the given storage key and bucket name.
    • runBounceTrackingMitigations

      @Beta public static org.openqa.selenium.devtools.Command<List<String>> runBounceTrackingMitigations()
      Deletes state for sites identified as potential bounce trackers, immediately.
    • setAttributionReportingLocalTestingMode

      @Beta public static org.openqa.selenium.devtools.Command<Void> setAttributionReportingLocalTestingMode(Boolean enabled)
      https://wicg.github.io/attribution-reporting-api/
    • setAttributionReportingTracking

      @Beta public static org.openqa.selenium.devtools.Command<Void> setAttributionReportingTracking(Boolean enable)
      Enables/disables issuing of Attribution Reporting events.
    • sendPendingAttributionReports

      @Beta public static org.openqa.selenium.devtools.Command<Integer> sendPendingAttributionReports()
      Sends all pending Attribution Reports immediately, regardless of their scheduled report time.
    • getRelatedWebsiteSets

      @Beta public static org.openqa.selenium.devtools.Command<List<RelatedWebsiteSet>> getRelatedWebsiteSets()
      Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.
    • getAffectedUrlsForThirdPartyCookieMetadata

      @Beta public static org.openqa.selenium.devtools.Command<List<String>> getAffectedUrlsForThirdPartyCookieMetadata(String firstPartyUrl, List<String> thirdPartyUrls)
      Returns the list of URLs from a page and its embedded resources that match existing grace period URL pattern rules. https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period
    • setProtectedAudienceKAnonymity

      public static org.openqa.selenium.devtools.Command<Void> setProtectedAudienceKAnonymity(String owner, String name, List<String> hashes)
    • cacheStorageContentUpdated

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

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

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

      public static org.openqa.selenium.devtools.Event<IndexedDBListUpdated> indexedDBListUpdated()
    • interestGroupAccessed

      public static org.openqa.selenium.devtools.Event<InterestGroupAccessed> interestGroupAccessed()
    • interestGroupAuctionEventOccurred

      public static org.openqa.selenium.devtools.Event<InterestGroupAuctionEventOccurred> interestGroupAuctionEventOccurred()
    • interestGroupAuctionNetworkRequestCreated

      public static org.openqa.selenium.devtools.Event<InterestGroupAuctionNetworkRequestCreated> interestGroupAuctionNetworkRequestCreated()
    • sharedStorageAccessed

      public static org.openqa.selenium.devtools.Event<SharedStorageAccessed> sharedStorageAccessed()
    • sharedStorageWorkletOperationExecutionFinished

      public static org.openqa.selenium.devtools.Event<SharedStorageWorkletOperationExecutionFinished> sharedStorageWorkletOperationExecutionFinished()
    • storageBucketCreatedOrUpdated

      public static org.openqa.selenium.devtools.Event<StorageBucketInfo> storageBucketCreatedOrUpdated()
    • storageBucketDeleted

      public static org.openqa.selenium.devtools.Event<String> storageBucketDeleted()
    • attributionReportingSourceRegistered

      public static org.openqa.selenium.devtools.Event<AttributionReportingSourceRegistered> attributionReportingSourceRegistered()
    • attributionReportingTriggerRegistered

      public static org.openqa.selenium.devtools.Event<AttributionReportingTriggerRegistered> attributionReportingTriggerRegistered()
    • attributionReportingReportSent

      public static org.openqa.selenium.devtools.Event<AttributionReportingReportSent> attributionReportingReportSent()
    • attributionReportingVerboseDebugReportSent

      public static org.openqa.selenium.devtools.Event<AttributionReportingVerboseDebugReportSent> attributionReportingVerboseDebugReportSent()