Package org.openqa.selenium.firefox
Interface HasExtensions
-
- All Known Implementing Classes:
FirefoxDriver
@Beta public interface HasExtensions
Used by classes to indicate that they can install and uninstall browser extensions on the fly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
installExtension(java.nio.file.Path path)
Installs an extension.java.lang.String
installExtension(java.nio.file.Path path, java.lang.Boolean temporary)
void
uninstallExtension(java.lang.String extensionId)
Uninstall the extension by the given identifier.
-
-
-
Method Detail
-
installExtension
java.lang.String installExtension(java.nio.file.Path path)
Installs an extension.- Parameters:
path
- absolute path to the extension file that should be installed.- Returns:
- the unique identifier of the installed extension.
-
installExtension
java.lang.String installExtension(java.nio.file.Path path, java.lang.Boolean temporary)
-
uninstallExtension
void uninstallExtension(java.lang.String extensionId)
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)
}
-
-