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.
type
Type:AccessibilityRegionType
The accessibility type of the region.
css_selector
Type:CssSelector
A selector for the region.
CssSelector
The type CssSelector is defined as: Text
by
Type:BySelector
A selector for the region.
BySelector
The type BySelector is defined as: List[SeleniumBy,Text]
element
Type:AnyWebElement
An element whose area defines the accessibility region being defined.
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