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 default and recommend match level.

This march level verifies that the page content matches the baseline image closely enough that the human eye would not see any difference. 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.

The Strict match level is most effective when used for regression tests on a particular browser/OS with mostly static content.


This level is useful for validating that the page layout is consistent.

With this match level, Eyes identifies the various page elements in the checkpoint and baseline images, such as text, images, buttons, and columns and verifies that the relative positions of these elements are consistent. This match level can detect elements that have appeared, disappeared, or moved. 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, and cross-environment testing where a single baseline is used for multiple execution environments (different operating systems, browsers, devices, viewport sizes, and orientations).

Ignore Colors
This match level is similar to the strict match level but ignores changes in colors. It is effective when your content is static but the color varies, for example if there are buttons or screen elements that can appear in a variety of colors.

This match level causes the Eyes matching engine to do a pixel to pixel comparison of the checkpoint and baseline images. It is sensitive to differences such as rendering anomalies that are not visible to the human eye. It is not recommended for ordinary verification purposes.


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.