accessibility method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: 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 the region and its type.
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 whose bounding rectangle defines an accessibility region to be analyzed.
elementsToIgnore
Type:WebElement[]
A list of elements whose areas should not be tested for accessibility.

Return value

Type: ICheckSettings

Remarks

For more information about the Contrast advisor feature see Contrast advisor