accessibility method
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 a rectangular area in the window.
- 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.
Type definitions
- 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.
Type definitions
- BySelector
- The type BySelector is defined as: List[SeleniumBy,Text].
- element
- Type:AnyWebElement
- An element bounding rectangle that defines an accessibility region to be analyzed.
Type definitions
- 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.