public class NewProfileExtensionConnection extends Object implements ExtensionConnection, org.openqa.selenium.logging.NeedsLocalLogs
Modifier and Type | Field and Description |
---|---|
static 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(org.openqa.selenium.internal.Lock lock,
FirefoxBinary binary,
FirefoxProfile profile,
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(org.openqa.selenium.logging.LocalLogs logs) |
void |
start()
Establishes a connection to the extension.
|
public static final String FIREFOX_DRIVER_XPI_PROPERTY
public NewProfileExtensionConnection(org.openqa.selenium.internal.Lock lock, FirefoxBinary binary, FirefoxProfile profile, String host) throws Exception
Exception
public void start() throws IOException
ExtensionConnection
start
in interface ExtensionConnection
IOException
- If an I/O error occurs.protected void addWebDriverExtensionIfNeeded()
public Response execute(Command command) throws IOException
execute
in interface CommandExecutor
IOException
protected int determineNextFreePort(int port)
public void quit()
ExtensionConnection
quit
in interface ExtensionConnection
public boolean isConnected()
isConnected
in interface ExtensionConnection
public void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
setLocalLogs
in interface org.openqa.selenium.logging.NeedsLocalLogs
Copyright © 2014. All rights reserved.