getConfiguration method

Class: EyesPlatform: PlaywrightLanguage: 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.


let value = eyes.getConfiguration();
eyes.configuration = value;
value = eyes.configuration;

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


This method does not take any parameters.

Return value

Type: Configuration