Class Extensions
java.lang.Object
org.openqa.selenium.devtools.v150.extensions.Extensions
Defines commands and events for browser extensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<Void> clearStorageItems(String id, StorageArea storageArea) Clears extension storage in the given `storageArea`.static org.openqa.selenium.devtools.Command<List<ExtensionInfo>> Gets a list of all unpacked extensions.getStorageItems(String id, StorageArea storageArea, Optional<List<String>> keys) Gets data from extension storage in the given `storageArea`.static org.openqa.selenium.devtools.Command<String> loadUnpacked(String path, Optional<Boolean> enableInIncognito) Installs an unpacked extension from the filesystem similar to --load-extension CLI flags.static org.openqa.selenium.devtools.Command<Void> removeStorageItems(String id, StorageArea storageArea, List<String> keys) Removes `keys` from extension storage in the given `storageArea`.static org.openqa.selenium.devtools.Command<Void> setStorageItems(String id, StorageArea storageArea, Map<String, Object> values) Sets `values` in extension storage in the given `storageArea`.static org.openqa.selenium.devtools.Command<Void> triggerAction(String id, String targetId) Runs an extension default action.static org.openqa.selenium.devtools.Command<Void> Uninstalls an unpacked extension (others not supported) from the profile.
-
Constructor Details
-
Extensions
public Extensions()
-
-
Method Details
-
triggerAction
-
loadUnpacked
-
getExtensions
Gets a list of all unpacked extensions. -
uninstall
-
getStorageItems
-
removeStorageItems
public static org.openqa.selenium.devtools.Command<Void> removeStorageItems(String id, StorageArea storageArea, List<String> keys) Removes `keys` from extension storage in the given `storageArea`. -
clearStorageItems
public static org.openqa.selenium.devtools.Command<Void> clearStorageItems(String id, StorageArea storageArea) Clears extension storage in the given `storageArea`. -
setStorageItems
-