region method
Requests that only a region within a selected i-frame should be matched.
Syntax
eyes.check(Target.window().region(region_obj));
eyes.check(Target.window().region(region_ele));
eyes.check(Target.window().region(region_sel));
Parameters
- region_obj
- Type:RegionPlain
An object that defines a rectangular area in the window.
RegionPlain
Type definitions
- RegionPlain
- Used to describe a position and rectangular region in an image. RegionPlain is defined as: LocationPlain&RectangleSizePlain
- region_ele
- Type:ElementHandle
An object that defines a rectangular area in the window.
An element whose position and bounding rectangle defines the region.
- region_sel
- Type:Selector
An object that defines a rectangular area in the window.
A selector to an element whose position and bounding rectangle defines the region.
Type definitions
- Selector
- Used to identify an HTML element defined as string|{selector:string;type:string}.
Return value
- Type: CheckSettings
- 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.
The enclosing frame(s) are selected by the previous calls in the chain to Target.frame.
You may only use this method in the chain if the first method in the chain is Target.frame.
You may not call it if the first method in the chain is Target.window or Target.region.
To match a region within a window, use the method Target.region as the first method in the Target chain.
You may only call this method once in a given chain.