Describes a command to be executed by the WebDriverJS framework.
Constructor methods
constructor(name: string): Command
Parameters
Returns
Command
Methods
public getName(): string
Returns
string
This command's name.
public getParameter(key: string): any
Returns a named command parameter.
Parameters
Returns
any
The parameter value, or undefined if it has not been set.
public getParameters(): any
Returns
any
The parameters to send with this command.
public setParameter(name: string, value: any): Command
Sets a parameter to send with this command.
Parameters
-
name: string
The parameter name.
-
value: any
The parameter value.
Returns
Command
A self reference.
public setParameters(parameters: any): Command
Sets the parameters for this command.
Parameters
-
parameters: any
The command parameters.
Returns
Command
A self reference.