@Deprecated public class HttpCommandProcessor extends Object implements CommandProcessor
| 构造器和说明 |
|---|
HttpCommandProcessor(String serverHost,
int serverPort,
String browserStartCommand,
String browserURL)
已过时。
Specifies a server host/port, a command to launch the browser, and a starting URL for the
browser.
|
HttpCommandProcessor(String pathToServlet,
String browserStartCommand,
String browserURL)
已过时。
Specifies the URL to the CommandBridge servlet, a command to launch the browser, and a starting
URL for the browser.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
doCommand(String commandName,
String[] args)
已过时。
Send the specified remote command to the browser to be performed
|
String |
executeCommandOnServlet(String command)
已过时。
Sends the specified command string to the bridge servlet
|
boolean |
getBoolean(String commandName,
String[] args)
已过时。
|
boolean[] |
getBooleanArray(String commandName,
String[] args)
已过时。
|
Number |
getNumber(String commandName,
String[] args)
已过时。
|
Number[] |
getNumberArray(String commandName,
String[] args)
已过时。
|
String |
getRemoteControlServerLocation()
已过时。
The URL that the RemoteControl instance is allegedly running on
|
String |
getString(String commandName,
String[] args)
已过时。
|
String[] |
getStringArray(String commandName,
String[] args)
已过时。
|
boolean |
hasSessionInProgress()
已过时。
|
static String[] |
parseCSV(String input)
已过时。
Convert backslash-escaped comma-delimited string into String array.
|
void |
setExtensionJs(String extensionJs)
已过时。
This should be invoked before start().
|
void |
start()
已过时。
Starts a new Selenium testing session
|
void |
start(Object optionsObject)
已过时。
Wraps the version of start() that takes a String parameter, sending it the result of calling
toString() on optionsObject, which will likely be a BrowserConfigurationOptions instance.
|
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)
|
public HttpCommandProcessor(String serverHost, int serverPort, String browserStartCommand, String browserURL)
serverHost - - the host name on which the Selenium Server residesserverPort - - the port on which the Selenium Server is listeningbrowserStartCommand - - the command string used to launch the browser, e.g. "*firefox" or
"c:\\program files\\internet explorer\\iexplore.exe"browserURL - - the starting URL including just a domain name. We'll start the browser
pointing at the Selenium resources on this URL,public HttpCommandProcessor(String pathToServlet, String browserStartCommand, String browserURL)
pathToServlet - - the URL of the Selenium Server Driver, e.g.
"http://localhost:4444/selenium-server/driver/" (don't forget the final slash!)browserStartCommand - - the command string used to launch the browser, e.g. "*firefox" or
"c:\\program files\\internet explorer\\iexplore.exe"browserURL - - the starting URL including just a domain name. We'll start the browser
pointing at the Selenium resources on this URL,public String getRemoteControlServerLocation()
CommandProcessorgetRemoteControlServerLocation 在接口中 CommandProcessorpublic String doCommand(String commandName, String[] args)
CommandProcessordoCommand 在接口中 CommandProcessorcommandName - - the remote command verbargs - - the arguments to the remote command (depends on the verb)public String executeCommandOnServlet(String command)
command - command to executepublic void setExtensionJs(String extensionJs)
setExtensionJs 在接口中 CommandProcessorextensionJs - the extra extension Javascript to include in this browser session.public void start()
CommandProcessorstart 在接口中 CommandProcessorpublic void start(String optionsString)
CommandProcessorstart 在接口中 CommandProcessoroptionsString - option stringpublic void start(Object optionsObject)
start 在接口中 CommandProcessoroptionsObject - start optionspublic void stop()
CommandProcessorstop 在接口中 CommandProcessorpublic boolean hasSessionInProgress()
public String getString(String commandName, String[] args)
getString 在接口中 CommandProcessorpublic String[] getStringArray(String commandName, String[] args)
getStringArray 在接口中 CommandProcessorpublic static String[] parseCSV(String input)
input - the unparsed string, e.g. "veni\, vidi\, vici,c:\\foo\\bar,c:\\I came\, I
\\saw\\\, I conquered"public Number getNumber(String commandName, String[] args)
getNumber 在接口中 CommandProcessorpublic Number[] getNumberArray(String commandName, String[] args)
getNumberArray 在接口中 CommandProcessorpublic boolean getBoolean(String commandName, String[] args)
getBoolean 在接口中 CommandProcessorpublic boolean[] getBooleanArray(String commandName, String[] args)
getBooleanArray 在接口中 CommandProcessor