public class NewProfileExtensionConnection extends java.lang.Object implements ExtensionConnection, org.openqa.selenium.logging.NeedsLocalLogs
Constructor and Description |
---|
NewProfileExtensionConnection(org.openqa.selenium.internal.Lock lock,
FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host) |
Modifier and Type | Method and Description |
---|---|
protected void |
addWebDriverExtensionIfNeeded() |
protected int |
determineNextFreePort(int port) |
org.openqa.selenium.remote.Response |
execute(org.openqa.selenium.remote.Command command) |
java.net.URI |
getAddressOfRemoteServer() |
boolean |
isConnected() |
void |
quit()
Terminates the connection.
|
void |
setLocalLogs(org.openqa.selenium.logging.LocalLogs logs) |
void |
start()
Establishes a connection to the extension.
|
public NewProfileExtensionConnection(org.openqa.selenium.internal.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 org.openqa.selenium.remote.Response execute(org.openqa.selenium.remote.Command command) throws java.io.IOException
execute
in interface org.openqa.selenium.remote.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(org.openqa.selenium.logging.LocalLogs logs)
setLocalLogs
in interface org.openqa.selenium.logging.NeedsLocalLogs
public java.net.URI getAddressOfRemoteServer()
getAddressOfRemoteServer
in interface ExtensionConnection