Class Command

Describes a command to be executed by the WebDriverJS framework.

param

The name of this command.

constructor

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(name: string): Command

constructor

Parameters

  • name: string

    The name of this command.

Returns

Command

Methods

public getName(): string

Returns

string

This command's name.

public getParameter(key: string): any

Returns a named command parameter.

Parameters

  • key: string

    The parameter key to look up.

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.