org.openqa.selenium.chrome
Class ChromeCommandExecutor

java.lang.Object
  extended by org.openqa.selenium.chrome.ChromeCommandExecutor

public class ChromeCommandExecutor
extends java.lang.Object


Constructor Summary
ChromeCommandExecutor(int port)
          Creates a new ChromeCommandExecutor which listens on a TCP port.
 
Method Summary
 ChromeResponse execute(Command command)
          Executes the passed command
 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

ChromeCommandExecutor

public ChromeCommandExecutor(int port)
Creates a new ChromeCommandExecutor which listens on a TCP port. Doesn't return until the TCP port is connected to.

Parameters:
port - port on which to listen for the initial connection, and dispatch commands
Throws:
WebDriverException - if could not bind to port TODO(danielwh): Bind to a random port (blocked on crbug.com 11547)
Method Detail

execute

public ChromeResponse execute(Command command)
                       throws java.io.IOException
Executes the passed command

Parameters:
command - command to execute
Returns:
response to command
Throws:
java.lang.IllegalStateException - if no socket was present
java.io.IOException

stopListening

public void stopListening()
Stops listening from for new sockets from Chrome



Copyright © 2009. All Rights Reserved.