eyes set match level command

Platform: Selenium IDE

You can control the type of matching done by the Eyes matching engine, by using the set match level command to define a match level. The match level property governs how closely the checkpoint image and baseline image are expected to match. There are four levels, but most users use either Strict or Layout.

The set match level command can take one of the following values:

This is the recommended level when you want to validate the precise content of the page. With this level, Eyes detects changes in text, font, color, graphics, and position of elements. It aims to detect differences that are visible to the human eye while ignoring differences in pixel values that are platform dependent due to the rendering software and hardware. Strict match level is most effective when used for regression tests on a particular browser/OS with static content.
This level is useful for validating that the page layout is consistent. With this level Eyes identifies the various page elements in the checkpoint image, and the baseline image- text, images, buttons, columns and so on. It then validates that the relative positions of these elements are consistent. It can detect elements that have moved as well as elements that have disappeared. With this match level, the Eyes matching engine ignores differences in the actual content text and graphics, color and other style changes. This match level is most effective when used to validate pages with dynamic content, language localization, responsive design, and cross-environment testing which means using a single baseline for a variety of execution environment - multiple operating systems, browsers, devices and viewport form factors and orientation.
This match level is similar to the strict match level but ignores differences in color. It is effective when your content is static, but the color can vary.
This match level is not recommended for ordinary validation purposes. With this match level, Eyes does a pixel to pixel comparison of the two images. This means that it is sensitive to differences that are not visible to the human eye, for example, because of rendering anomalies.
With this level Eyes won't do any matching at all, whatever the content is, will be considered to be matched.


You set the match level using the Selenium IDE command

This takes a single parameter value which is one of the available match levels.

You may call this command multiple times, the level you set affects all the subsequent match commands unless you change the match level again.

If you don't use this command, then the default match level is strict.