Class webdriver.Command
Defined in: command.js.
Constructor Attributes | Constructor Name and Description |
---|---|
webdriver.Command(name)
Describes a command to be executed by the WebDriverJS framework.
|
Method Attributes | Method Name and Description |
---|---|
getName()
|
|
getParameter(key)
Returns a named command parameter.
|
|
setParameter(name, value)
Sets a parameter to send with this command.
|
|
setParameters(parameters)
Sets the parameters for this command.
|
Class Detail
webdriver.Command(name)
Describes a command to be executed by the WebDriverJS framework.
- Parameters:
- {!webdriver.CommandName} name
- The name of this command.
Method Detail
{!webdriver.CommandName}
getName()
- Returns:
- {!webdriver.CommandName} This command's name.
{*}
getParameter(key)
Returns a named command parameter.
- Parameters:
- {string} key
- The parameter key to look up.
- Returns:
- {*} The parameter value, or undefined if it has not been set.
{!Object.<*>}
getParameters()
- Returns:
- {!Object.<*>} The parameters to send with this command.
{!webdriver.Command}
setParameter(name, value)
Sets a parameter to send with this command.
- Parameters:
- {string} name
- The parameter name.
- {*} value
- The parameter value.
- Returns:
- {!webdriver.Command} A self reference.
{!webdriver.Command}
setParameters(parameters)
Sets the parameters for this command.
- Parameters:
- {!Object.<*>} parameters
- The command parameters.
- Returns:
- {!webdriver.Command} A self reference.