|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.WebDriverCommandProcessor
public class WebDriverCommandProcessor
A CommandProcessor which delegates commands down to an underlying webdriver instance.
Constructor Summary | |
---|---|
WebDriverCommandProcessor(String baseUrl)
Create an instance that will later be configured by calling start(Object) with a Capabilities
instance. |
|
WebDriverCommandProcessor(String baseUrl,
Capabilities likeThis)
Create an instance that will later be started by calling start() |
|
WebDriverCommandProcessor(String baseUrl,
com.google.common.base.Supplier<WebDriver> maker)
|
|
WebDriverCommandProcessor(String baseUrl,
WebDriver driver)
|
Method Summary | |
---|---|
void |
addMethod(String methodName,
SeleneseCommand command)
|
void |
addMutator(ScriptMutator mutator)
|
protected void |
assertDriverSupportsJavascript(WebDriver driver)
|
String |
doCommand(String commandName,
String[] args)
Send the specified remote command to the browser to be performed |
boolean |
getBoolean(String commandName,
String[] args)
|
boolean[] |
getBooleanArray(String s,
String[] strings)
|
SeleneseCommand |
getMethod(String methodName)
|
Number |
getNumber(String commandName,
String[] args)
|
Number[] |
getNumberArray(String s,
String[] strings)
|
String |
getRemoteControlServerLocation()
The URL that the RemoteControl instance is allegedly running on |
String |
getString(String commandName,
String[] args)
|
String[] |
getStringArray(String commandName,
String[] args)
|
WebDriver |
getWrappedDriver()
|
boolean |
isMethodAvailable(String methodName)
|
void |
setExtensionJs(String s)
Sets extension Javascript for the session |
void |
start()
Starts a new Selenium testing session |
void |
start(Object o)
Starts a new Selenium testing session with a configuration options object |
void |
start(String s)
Starts a new Selenium testing session with a String, representing a configuration |
void |
stop()
Ends the current Selenium testing session (normally killing the browser) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDriverCommandProcessor(String baseUrl)
start(Object)
with a Capabilities
instance.
baseUrl
- The URL from which relative URLs should be based onpublic WebDriverCommandProcessor(String baseUrl, Capabilities likeThis)
start()
baseUrl
- The URL from which relative URLs should be based onlikeThis
- Typically a DesiredCapabilities
instancepublic WebDriverCommandProcessor(String baseUrl, WebDriver driver)
public WebDriverCommandProcessor(String baseUrl, com.google.common.base.Supplier<WebDriver> maker)
Method Detail |
---|
public WebDriver getWrappedDriver()
getWrappedDriver
in interface WrapsDriver
public String getRemoteControlServerLocation()
CommandProcessor
getRemoteControlServerLocation
in interface CommandProcessor
public String doCommand(String commandName, String[] args)
CommandProcessor
doCommand
in interface CommandProcessor
commandName
- - the remote command verbargs
- - the arguments to the remote command (depends on the verb)
public void setExtensionJs(String s)
CommandProcessor
setExtensionJs
in interface CommandProcessor
public void start()
CommandProcessor
start
in interface CommandProcessor
public void start(String s)
CommandProcessor
start
in interface CommandProcessor
public void start(Object o)
CommandProcessor
start
in interface CommandProcessor
public void stop()
CommandProcessor
stop
in interface CommandProcessor
public String getString(String commandName, String[] args)
getString
in interface CommandProcessor
public String[] getStringArray(String commandName, String[] args)
getStringArray
in interface CommandProcessor
public Number getNumber(String commandName, String[] args)
getNumber
in interface CommandProcessor
public Number[] getNumberArray(String s, String[] strings)
getNumberArray
in interface CommandProcessor
public boolean getBoolean(String commandName, String[] args)
getBoolean
in interface CommandProcessor
public boolean[] getBooleanArray(String s, String[] strings)
getBooleanArray
in interface CommandProcessor
public void addMutator(ScriptMutator mutator)
public boolean isMethodAvailable(String methodName)
public void addMethod(String methodName, SeleneseCommand command)
public SeleneseCommand getMethod(String methodName)
protected void assertDriverSupportsJavascript(WebDriver driver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |