|
|||||||||
| 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 | |
|---|---|
Response |
execute(Command command)
Executes the passed command |
ChromeBinary |
getBinary()
|
int |
getPort()
Returns the port being listened on |
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 CommandExecutorcommand - command to execute
java.lang.IllegalStateException - if no socket was present
java.io.IOExceptionpublic void start()
public void stop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||