accessibility method

Class: AppiumCheckSettingsPlatform: AppiumLanguage: Java SDK:

Use to define an accessibility region and its type.

Syntax

eyes.check(Target.window().accessibility(region, regionType))
eyes.check(Target.window().accessibility(regionSelector, regionType))
eyes.check(Target.window().accessibility(element, regionType))
eyes.check(Target.window().accessibility(regionType, elementsToIgnore))

Parameters

region
Type:Region
An object that defines a rectangular area in the window.
regionType
Type:AccessibilityRegionType
The accessibility type of the region.
regionSelector
Type:By
A selector that specified one or more elements. The bounding rectangle of each element, defines an accessibility region to be analyzed.
element
Type:WebElement
An element bounding rectangle that defines an accessibility region to be analyzed.
elementsToIgnore
Type:WebElement[]
A list of elements for which areas should not be tested for accessibility.

Return value

Type: ICheckSettings

Remarks

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