com.thoughtworks.selenium
Interface CommandProcessor


public interface CommandProcessor

Provides a doCommand method, which sends the command to the browser to be performed.

Version:
$Revision: 7681 $
Author:
Paul Hammant

Method Summary
 String doCommand(String command, String[] args)
          Send the specified remote command to the browser to be performed
 boolean getBoolean(String string, String[] strings)
           
 boolean[] getBooleanArray(String string, String[] strings)
           
 Number getNumber(String string, String[] strings)
           
 Number[] getNumberArray(String string, String[] strings)
           
 String getRemoteControlServerLocation()
          The URL that the RemoteControl instance is allegedly running on
 String getString(String string, String[] strings)
           
 String[] getStringArray(String string, String[] strings)
           
 void setExtensionJs(String extensionJs)
          Sets extension Javascript for the session
 void start()
          Starts a new Selenium testing session
 void start(Object optionsObject)
          Starts a new Selenium testing session with a configuration options object
 void start(String optionsString)
          Starts a new Selenium testing session with a String, representing a configuration
 void stop()
          Ends the current Selenium testing session (normally killing the browser)
 

Method Detail

getRemoteControlServerLocation

String getRemoteControlServerLocation()
The URL that the RemoteControl instance is allegedly running on

Returns:
the URL

doCommand

String doCommand(String command,
                 String[] args)
Send the specified remote command to the browser to be performed

Parameters:
command - - the remote command verb
args - - the arguments to the remote command (depends on the verb)
Returns:
- the command result, defined by the remote JavaScript. "getX" style commands may return data from the browser; other "doX" style commands may just return "OK" or an error message.

setExtensionJs

void setExtensionJs(String extensionJs)
Sets extension Javascript for the session


start

void start()
Starts a new Selenium testing session


start

void start(String optionsString)
Starts a new Selenium testing session with a String, representing a configuration


start

void start(Object optionsObject)
Starts a new Selenium testing session with a configuration options object


stop

void stop()
Ends the current Selenium testing session (normally killing the browser)


getString

String getString(String string,
                 String[] strings)

getStringArray

String[] getStringArray(String string,
                        String[] strings)

getNumber

Number getNumber(String string,
                 String[] strings)

getNumberArray

Number[] getNumberArray(String string,
                        String[] strings)

getBoolean

boolean getBoolean(String string,
                   String[] strings)

getBooleanArray

boolean[] getBooleanArray(String string,
                          String[] strings)


Copyright © 2011. All Rights Reserved.