region method

Class: EspressoCheckSettingsPlatform: EspressoLanguage: Java SDK:

Requests that only a region within the Target (window/fragment/region/googleMap) be matched.

Syntax


eyes.check(Target.frame(frameSelector).region(region))
eyes.check(Target.frame(frameSelector).region(matcher))

Parameters

region
Type:Region
An object that defines a rectangular area in the window.
matcher
Type:Matcher
The Matcher types can be any of the following Hamcrest Matchers: ViewMatcher, RootMatcher, LayoutMatcher or PreferenceMatcher

Return value

Type: EspressoCheckSettings
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 parameter to the method specifies the region to be matched. You may only call this method once in a given chain.