checkRegion method

Class: EyesPlatform: EspressoLanguage: Java SDK:

Checks a particular region of the checkpoint window.

Syntax


eyes.checkRegion(region);
eyes.checkRegion(region, tag);
eyes.checkRegion(matcher);
eyes.checkRegion(matcher, tag);

Parameters

region
Type:Region
A non-empty region representing the screen region to check in screenshot pixel coordinates.
tag
Type:String

The tag defines a name for the checkpoint in the Eyes Test Manager. The name may be any string and serves to identify the step to the user in the Test manager. You may change the tag value without impacting testing in any way since Eyes does not use the tag to identify the baseline step that corresponds to the checkpoint - Eyes matches steps based on their content and position in the sequences of images of the test. See How Eyes compares checkpoints and baseline images for details.

matcher
Type:Matcher
The Matcher types can be any of the following Hamcrest Matchers: ViewMatcher, RootMatcher, LayoutMatcher or PreferenceMatcher

Return value

Type: void