Class Storage
java.lang.Object
org.openqa.selenium.devtools.v114.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<CacheStorageListUpdated>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.static org.openqa.selenium.devtools.Command<Void>clearDataForStorageKey(String storageKey, String storageTypes) Clears storage for storage key.static org.openqa.selenium.devtools.Command<Void>clearSharedStorageEntries(String ownerOrigin) Clears all entries for a given origin's shared storage.static org.openqa.selenium.devtools.Command<Boolean>clearTrustTokens(String issuerOrigin) Removes all Trust Tokens issued by the provided issuerOrigin.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.static org.openqa.selenium.devtools.Command<Void>deleteStorageBucket(String storageKey, String bucketName) Deletes the Storage Bucket with the given storage key and bucket name.getCookies(Optional<BrowserContextID> browserContextId) Returns all browser cookies.static org.openqa.selenium.devtools.Command<InterestGroupDetails>getInterestGroupDetails(String ownerOrigin, String name) Gets details for a named interest group.static org.openqa.selenium.devtools.Command<List<SharedStorageEntry>>getSharedStorageEntries(String ownerOrigin) Gets the entries in an given origin's shared storage.static org.openqa.selenium.devtools.Command<SharedStorageMetadata>getSharedStorageMetadata(String ownerOrigin) Gets metadata for an origin's shared storage.static org.openqa.selenium.devtools.Command<SerializedStorageKey>getStorageKeyForFrame(FrameId frameId) Returns a storage key given a frame id.static org.openqa.selenium.devtools.Command<List<TrustTokens>>Returns the number of stored Trust Tokens per issuer for the current browsing context.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<IndexedDBListUpdated>static org.openqa.selenium.devtools.Event<InterestGroupAccessed>static org.openqa.selenium.devtools.Command<Void>overrideQuotaForOrigin(String origin, Optional<Number> quotaSize) Override quota for the specified originstatic org.openqa.selenium.devtools.Command<Void>resetSharedStorageBudget(String ownerOrigin) Resets the budget for `ownerOrigin` by clearing all budget withdrawals.Deletes state for sites identified as potential bounce trackers, immediately.static org.openqa.selenium.devtools.Command<Void>setCookies(List<CookieParam> cookies, Optional<BrowserContextID> browserContextId) Sets given cookies.static org.openqa.selenium.devtools.Command<Void>setInterestGroupTracking(Boolean enable) Enables/Disables issuing of interestGroupAccessed events.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.static org.openqa.selenium.devtools.Command<Void>setSharedStorageTracking(Boolean enable) Enables/disables issuing of sharedStorageAccessed events.static org.openqa.selenium.devtools.Command<Void>setStorageBucketTracking(String storageKey, Boolean enable) Set tracking for a storage key's buckets.static org.openqa.selenium.devtools.Event<SharedStorageAccessed>static org.openqa.selenium.devtools.Event<StorageBucketInfo>static org.openqa.selenium.devtools.Event<String>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>trackCacheStorageForStorageKey(String storageKey) Registers storage key 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>trackIndexedDBForStorageKey(String storageKey) Registers storage key 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>untrackCacheStorageForStorageKey(String storageKey) Unregisters storage key from receiving notifications for cache storage.static org.openqa.selenium.devtools.Command<Void>untrackIndexedDBForOrigin(String origin) Unregisters origin from receiving notifications for IndexedDB.static org.openqa.selenium.devtools.Command<Void>untrackIndexedDBForStorageKey(String storageKey) Unregisters storage key from receiving notifications for IndexedDB.
-
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
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
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
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
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<InterestGroupDetails> 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. -
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(String storageKey, String bucketName) 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. -
cacheStorageContentUpdated
public static org.openqa.selenium.devtools.Event<CacheStorageContentUpdated> cacheStorageContentUpdated() -
cacheStorageListUpdated
-
indexedDBContentUpdated
-
indexedDBListUpdated
-
interestGroupAccessed
-
storageBucketCreatedOrUpdated
-
storageBucketDeleted
-