CheckSettings class
The methods in this class are used as part of the check
Fluent API to configure and execute checkpoints.
To use these methods, first create a target object using a method from the Target
class, then call one or more of the methods in this class on the returned object, chaining them one after the other using the '.' operator.
accessibilityRegion method
Syntax
eyes.check(Target.window().accessibilityRegion(region_obj1));
eyes.check(Target.window().accessibilityRegion(region_obj2, type));
eyes.check(Target.window().accessibilityRegion(region_obj2));
eyes.check(Target.window().accessibilityRegion(region_ele, type));
eyes.check(Target.window().accessibilityRegion(region_ele));
eyes.check(Target.window().accessibilityRegion(region_sel, type));
eyes.check(Target.window().accessibilityRegion(region_sel));
Parameters
region_obj1
Type:
{
region: RegionPlain | Element | Selector;
type?: AccessibilityRegionType | undefined;
};
An object that defines a rectangular area in the window.
Type definitions
RegionPlain
Used to describe a position and rectangular region in an image. RegionPlain is defined as:
LocationPlain
andRectangleSizePlain
Element
Used to identify an HTML element defined as import('selenium-webdriver').WebElement|import('protractor').ElementFinder.
Selector
Used to identify an HTML element defined as
|import('protractor').Locator|{using:string;value:string}|string|{selector:string;Type: string}
.
region_obj2
Type: RegionPlain
An object that defines a rectangular area in the window.
Type definitions
RegionPlain
Used to describe a position and rectangular region in an image. RegionPlain is defined as:
LocationPlain
andRectangleSizePlain
type
Type:
AccessibilityRegionType
[Optional ]The accessibility type of the region.
region_ele
Type: Element
An element whose position and bounding rectangle defines the region.
Type definitions
Element
Used to identify an HTML element defined as import('selenium-webdriver').WebElement|import('protractor').ElementFinder.
region_sel
Type: Selector
A selector to an element whose position and bounding rectangle defines the region.
Type definitions
Selector
Used to identify an HTML element defined as
|import('protractor').Locator|{using:string;value:string}|string|{selector:string;Type: string}
.
Return value
Type: CheckSettings