Class Storage
java.lang.Object
org.openqa.selenium.devtools.v141.storage.Storage
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Event<AttributionReportingReportSent> static org.openqa.selenium.devtools.Event<AttributionReportingSourceRegistered> static org.openqa.selenium.devtools.Event<AttributionReportingTriggerRegistered> static org.openqa.selenium.devtools.Event<AttributionReportingVerboseDebugReportSent> static 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(StorageBucket bucket) Deletes the Storage Bucket with the given storage key and bucket name.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.getCookies(Optional<BrowserContextID> browserContextId) Returns all browser cookies.getInterestGroupDetails(String ownerOrigin, String name) Gets details for a named interest group.static org.openqa.selenium.devtools.Command<List<RelatedWebsiteSet>> Returns the effective Related Website Sets in use by this profile for the browser session.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.Event<InterestGroupAuctionEventOccurred> static org.openqa.selenium.devtools.Event<InterestGroupAuctionNetworkRequestCreated> 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<Integer> Sends all pending Attribution Reports immediately, regardless of their scheduled report time.static org.openqa.selenium.devtools.Command<Void> https://wicg.github.io/attribution-reporting-api/static org.openqa.selenium.devtools.Command<Void> Enables/disables issuing of Attribution Reporting events.static org.openqa.selenium.devtools.Command<Void> setCookies(List<CookieParam> cookies, Optional<BrowserContextID> browserContextId) Sets given cookies.static org.openqa.selenium.devtools.Command<Void> Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.static org.openqa.selenium.devtools.Command<Void> setInterestGroupTracking(Boolean enable) Enables/Disables issuing of interestGroupAccessed events.static org.openqa.selenium.devtools.Command<Void> setProtectedAudienceKAnonymity(String owner, String name, List<String> hashes) 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<SharedStorageWorkletOperationExecutionFinished> 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<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. -
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
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
-
cacheStorageContentUpdated
public static org.openqa.selenium.devtools.Event<CacheStorageContentUpdated> cacheStorageContentUpdated() -
cacheStorageListUpdated
-
indexedDBContentUpdated
-
indexedDBListUpdated
-
interestGroupAccessed
-
interestGroupAuctionEventOccurred
public static org.openqa.selenium.devtools.Event<InterestGroupAuctionEventOccurred> interestGroupAuctionEventOccurred() -
interestGroupAuctionNetworkRequestCreated
public static org.openqa.selenium.devtools.Event<InterestGroupAuctionNetworkRequestCreated> interestGroupAuctionNetworkRequestCreated() -
storageBucketCreatedOrUpdated
-
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()
-