|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.chrome.ChromeCommandExecutor
public class ChromeCommandExecutor
Constructor Summary | |
---|---|
ChromeCommandExecutor(ChromeBinary binary)
Creates a new ChromeCommandExecutor which listens on a free TCP port. |
Method Summary | |
---|---|
protected int |
determineNextFreePort(int port)
|
Response |
execute(Command command)
Executes the passed command |
ChromeBinary |
getBinary()
|
int |
getPort()
|
protected Lock |
newLock()
|
void |
setTimeout(long timeout)
|
void |
start()
Starts a new instanceof Chrome and waits for a TCP port connection from it. |
void |
stop()
Shuts down Chrome and stops listening for new socket connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChromeCommandExecutor(ChromeBinary binary)
binary
- The binary to use when starting
a new Chrome
instance.Method Detail |
---|
public ChromeBinary getBinary()
public int getPort()
public Response execute(Command command) throws java.io.IOException
execute
in interface CommandExecutor
command
- command to execute
java.lang.IllegalStateException
- if no socket was present
java.io.IOException
public void start()
protected int determineNextFreePort(int port) throws java.io.IOException
java.io.IOException
protected Lock newLock()
public void setTimeout(long timeout)
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |