accessibilityRegion method

Class: WebdriverioCheckSettingsPlatform: WebdriverIO 5Language: JavaScript SDK:

Use to define an accessibility region and its type.

Syntax


eyes.check(Target.window().accessibilityRegion(regionOrContainer, regionType))
eyes.check(Target.window().accessibilityRegion(regionOrContainer))

Parameters

regionOrContainer
Type:GetAccessibilityRegion|Region|AccessibilityMatchSettings|By|WebElement|EyesWebElement
The position and size of the region.
regionType
Type:AccessibilityRegionType [Optional ]
The accessibility type of the region.

Return value

Type: WebdriverioCheckSettings

Remarks

For more information about the Contrast advisor feature see Contrast advisor