setConfiguration method
Use this method to configure Eyes based on a configuration object.
Syntax
eyes.setConfiguration(configuration);
Parameters
- configuration
- Type:
Configuration|object
- A configuration object that has the various properties/methods set to the required values.
Return value
- Type:
Remarks
The typical sequence for configuring a test is:
- Create a Configuration object.
- Set the properties you want to set up, using the various set methods.
- Create an Eyes instance.
- Call the Eyes.setConfiguration method with the configuration object.
- Call the Eyes.open method to start the test session.
- 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.