|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openqa.selenium.chrome.ChromeCommandExecutor
public class ChromeCommandExecutor
Constructor Summary | |
---|---|
ChromeCommandExecutor()
Creates a new ChromeCommandExecutor which listens on a free TCP port. |
|
ChromeCommandExecutor(int port)
Creates a new ChromeCommandExecutor which listens on the passed TCP port. |
Method Summary | |
---|---|
ChromeResponse |
execute(Command command)
Executes the passed command |
int |
getPort()
Returns the port being listened on |
void |
startListening()
Starts listening for new socket connections from Chrome. |
void |
stopListening()
Stops listening from for new sockets from Chrome |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChromeCommandExecutor()
WebDriverException
- if could not bind to any portpublic ChromeCommandExecutor(int port)
port
- port on which to listen for the initial connection,
and dispatch commands
WebDriverException
- if could not bind to portMethod Detail |
---|
public int getPort()
public ChromeResponse execute(Command command) throws java.io.IOException
command
- command to execute
java.lang.IllegalStateException
- if no socket was present
java.io.IOException
public void startListening()
public void stopListening()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |