Package org.openqa.selenium.firefox
Interface HasExtensions
- All Known Implementing Classes:
FirefoxDriver
Used by classes to indicate that they can install and uninstall browser extensions on the fly.
-
Method Summary
Modifier and TypeMethodDescriptioninstallExtension
(Path path) Installs an extension.installExtension
(Path path, Boolean temporary) void
uninstallExtension
(String extensionId) Uninstall the extension by the given identifier.
-
Method Details
-
installExtension
Installs an extension.- Parameters:
path
- absolute path to the extension file that should be installed.- Returns:
- the unique identifier of the installed extension.
-
installExtension
-
uninstallExtension
Uninstall the extension by the given identifier. This value can be found in the extension's manifest, and typically ends with "@mozilla.org".- Parameters:
extensionId
- The unique extension identifier returned by {installExtension(Path)
}
-