accessibility method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Python SDK:

Use to define an accessibility region and its type.

Syntax


eyes.Check(Target.window().accessibility(region))
eyes.Check(Target.window().accessibility(css_selector, type))
eyes.Check(Target.window().accessibility(by, type))
eyes.Check(Target.window().accessibility(element, type))
eyes.Check(Target.window().accessibility(region, type))

Parameters

region
Type:Region
An object that defines the region and its type.
css_selector
Type:CssSelector
A selector that specified one or more elements. The bounding rectangle of each element, defines an accessibility region to be analyzed.
CssSelector
The type CssSelector is defined as: Text
type
Type:AccessibilityRegionType
The accessibility type of the region.
by
Type:BySelector
A selector that specified one or more elements. The bounding rectangle of each element, defines an accessibility region to be analyzed.
BySelector
The type BySelector is defined as: List[SeleniumBy,Text]
element
Type:AnyWebElement
An element whose bounding rectangle defines an accessibility region to be analyzed.
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement]

Return value

Type: SeleniumCheckSettings

Remarks

For more information about the Contrast advisor feature see Contrast advisor