matchLevel method

Class: CheckSettingsPlatform: ProtractorLanguage: JavaScript SDK:

Use this method to set the default match level (the type of matching) to use for this target when matching the captured image to the baseline image.




Available match level values are: For a description of these match levels and the different ways to apply them to tests, checkpoints, and regions, see Eyes match levels.

Return value

Type: CheckSettings
The value returned is the object that called the method. You can use it to call other methods supported by the object class.


The value provided here overrides the default match level, or the global value set for this target using Eyes.setMatchLevel or Configuration.setMatchLevel. You may only call this method once in a given chain. If you call this method, then you can't call the other match level methods. CheckSettings.strictCheckSettings.contentCheckSettings.layoutCheckSettings.exact

For a full description of the affect of each match levels and the different ways to apply them to tests, checkpoints and regions, How to use Eyes match levels.