match_level method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Python 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.

Syntax


eyes.Check(Target.window().match_level(match_level))

Parameters

match_level
Type:<a class ='link' href='/Content/api/eyes-sdk/enums-gen/enum-global-matchlevel-selenium-python_sdk4.htm'>MatchLevel</a>
Available match level values are:
  • NONE
  • STRICT
  • LAYOUT
  • CONTENT
  • EXACT
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: Self
The value returned is the object that called the method. You can use it to call other methods supported by the object class.

Remarks

The value provided here overrides the default match level, or the global value set for this target using Eyes.match_level or Configuration.set_match_level. 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. SeleniumCheckSettings.strictSeleniumCheckSettings.contentSeleniumCheckSettings.layoutSeleniumCheckSettings.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.