SetConfiguration method

Class: EyesPlatform: Selenium 3Language: C# SDK:

Use this method to configure Eyes based on a configuration object.

Syntax


eyes.SetConfiguration(configuration);

Parameters

configuration
Type:IConfiguration
A configuration object that has the various properties/methods set to the required values.

Return value

Type: void

Remarks

The typical sequence for configuring a test is:
  • Create a Configuration object.
  • Assign to the properties you want to set up, and call the various methods.
  • Create an Eyes instance.
  • Call the Eyes.SetConfiguration method with the configuration object.
  • Call the Eyes.Open method to start the test session.
Once you've changed the configuration of an Eyes instance by calling Eyes.SetConfiguration or by setting a configuration directly on the Eyes instance, if you want to change the configuration, you must use the following sequence:
  • 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.