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.Exceptionpublic void start()
throws java.io.IOException
ExtensionConnectionstart in interface ExtensionConnectionjava.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.CommandExecutorjava.io.IOExceptionprotected int determineNextFreePort(int port)
public void quit()
ExtensionConnectionquit in interface ExtensionConnectionpublic boolean isConnected()
isConnected in interface ExtensionConnectionpublic void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
setLocalLogs in interface org.openqa.selenium.logging.NeedsLocalLogspublic java.net.URI getAddressOfRemoteServer()
getAddressOfRemoteServer in interface ExtensionConnection