AccessibilitySettings method

Class: AccessibilitySettingsPlatform: ImagesLanguage: Python SDK:

Create an object that is used to set up accessibility validation.

Toset upaccessibility validation pass an object of this type to the Configuration.set_accessibility_validation method.

Syntax

obj = AccessibilitySettings(level, guidelines_version)

Parameters

level
Type:AccessibilityLevel
The required accessibility level.
guidelines_version
Type:AccessibilityGuidelinesVersion
The required accessibility guide version.

Return value

Type: None

Example

# test suite setup  
    suite_config = (Configuration()  
     .set_accessibility_validation(
        AccessibilitySettings(AccessibilityLevel.AAA, AccessibilityGuidelinesVersion.WCAG_2_1))
        # ... other configurations    
     )  
    #
    # Assign the configuration to all newly created Eyes instances
    #
    eyes = Eyes(runner)
    eyes.set_configuration(suite_config)