public class NewProfileExtensionConnection extends java.lang.Object implements ExtensionConnection, NeedsLocalLogs
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIREFOX_DRIVER_XPI_PROPERTY
System property that defines the location of the webdriver.xpi browser extension to install
in the browser.
|
Constructor and Description |
---|
NewProfileExtensionConnection(Lock lock,
FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host) |
Modifier and Type | Method and Description |
---|---|
protected void |
addWebDriverExtensionIfNeeded() |
protected int |
determineNextFreePort(int port) |
Response |
execute(Command command) |
boolean |
isConnected() |
void |
quit()
Terminates the connection.
|
void |
setLocalLogs(LocalLogs logs) |
void |
start()
Establishes a connection to the extension.
|
public static final java.lang.String FIREFOX_DRIVER_XPI_PROPERTY
public NewProfileExtensionConnection(Lock lock, FirefoxBinary binary, FirefoxProfile profile, java.lang.String host) throws java.lang.Exception
java.lang.Exception
public void start() throws java.io.IOException
ExtensionConnection
start
in interface ExtensionConnection
java.io.IOException
- If an I/O error occurs.protected void addWebDriverExtensionIfNeeded()
public Response execute(Command command) throws java.io.IOException
execute
in interface CommandExecutor
java.io.IOException
protected int determineNextFreePort(int port)
public void quit()
ExtensionConnection
quit
in interface ExtensionConnection
public boolean isConnected()
isConnected
in interface ExtensionConnection
public void setLocalLogs(LocalLogs logs)
setLocalLogs
in interface NeedsLocalLogs