accessibilityRegion method

Class: SeleniumCheckSettingsPlatform: Selenium 4Language: 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
Defines the position and size of the region(s), depending on the type of object passed.
regionType
Type:AccessibilityRegionType [Optional ]
The accessibility type of the region.

Return value

Type: SeleniumCheckSettings

Remarks

For more information about the Contrast advisor feature see Contrast advisor.