getApiKey method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Use this method to retrieve your Eyes license key that you set with setApiKey, or was extracted from the APPLITOOLS_API_KEY environment variable.

Syntax

let configval = config.getApiKey();
config.apiKey = configval;
configval = config.apiKey;

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

Parameters

This method does not take any parameters.

Return value

Type: string