|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.chrome.ChromeExtension
public class ChromeExtension
Class for managing the WebDriver Chrome extension.
Field Summary | |
---|---|
static java.lang.String |
CHROME_EXTENSION_DIRECTORY_PROPERTY
System property used to specify which extension directory to use. |
Constructor Summary | |
---|---|
ChromeExtension()
Creates a new instance using the directory specified by the criteria defined by findChromeExtensionDir() . |
|
ChromeExtension(java.io.File directory)
Create a new instance that manages the extension in the specified directory. |
Method Summary | |
---|---|
static java.io.File |
findChromeExtensionDir()
Searches for the Chrome extension directory to use. |
java.io.File |
getDirectory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHROME_EXTENSION_DIRECTORY_PROPERTY
Constructor Detail |
---|
public ChromeExtension(java.io.File directory) throws WebDriverException
directory
- The directory to use as the Chrome extension.
WebDriverException
- If the directory is not valid (e.g. does not
contain a manifest.json file).public ChromeExtension()
findChromeExtensionDir()
.
ChromeExtension(File)
,
findChromeExtensionDir()
Method Detail |
---|
public java.io.File getDirectory()
public static java.io.File findChromeExtensionDir()
webdriver.chrome.extensiondir
system
property, and then will check the current classpath for
chrome-extension.zip
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |