setAgentId method

Class: ConfigurationPlatform: PlaywrightLanguage: JavaScript SDK:

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


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

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


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.