org.openqa.selenium.firefox.internal
Class NewProfileExtensionConnection
java.lang.Object
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection
- All Implemented Interfaces:
- ExtensionConnection, CommandExecutor
public class NewProfileExtensionConnection
- extends Object
- implements CommandExecutor, ExtensionConnection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewProfileExtensionConnection
public NewProfileExtensionConnection(org.openqa.selenium.internal.Lock lock,
FirefoxBinary binary,
FirefoxProfile profile,
String host)
throws Exception
- Throws:
Exception
start
public void start()
throws IOException
- Description copied from interface:
ExtensionConnection
- Establishes a connection to the extension.
- Specified by:
start
in interface ExtensionConnection
- Throws:
IOException
- If an I/O error occurs.
execute
public Response execute(Command command)
throws IOException
- Specified by:
execute
in interface CommandExecutor
- Throws:
IOException
determineNextFreePort
protected int determineNextFreePort(int port)
throws IOException
- Throws:
IOException
quit
public void quit()
- Description copied from interface:
ExtensionConnection
- Terminates the connection.
- Specified by:
quit
in interface ExtensionConnection
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interface ExtensionConnection
- Returns:
- Whether the extension is reachable and accepting requests.
Copyright © 2011. All Rights Reserved.