getConfiguration method

Class: EyesPlatform: WebdriverIO 5Language: JavaScript SDK:

Use this method to retrieve the current configuration object. This will be the most recent configuration object set using setConfiguration, or the initial default configuration object.

If you want to change an Eyes configuration that has already been configured, then the standard way of doing so is to use the following pattern:

  • Get the current configuration using Eyes.getConfiguration to a local variable.
  • Make changes to the local configuration value.
  • Assign the local configuration object to the Eyes instance using Eyes.setConfiguration.

Syntax


let value = eyes.getConfiguration();

Parameters

This method does not take any parameters.

Return value

Type: Configuration