setAgentId method

Class: ConfigurationPlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set the name and version of the SDK.

Syntax

let configval = config.setAgentId(agentId);
config.agentId = configval;
configval = config.agentId;

Note that this feature is available as both a method and a property.

Parameters

agentId
Type:string
The agent id to be configured.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.