AccessibilitySettings method

Class: AccessibilitySettingsPlatform: ImagesLanguage: Python SDK:

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

To setup accessibility validation pass an object of this type to the method Configuration.set_accessibility_validation.

Syntax


obj = AccessibilitySettings(level, guidelines_version)

Parameters

level
Type:Union[Text,AccessibilityLevel]
The required accessibility level.
guidelines_version
Type:Union[Text,AccessibilityGuidelinesVersion]
The required accessibility guide version.

Return value

Type: AccessibilitySettings

Example

suite_config = (Configuration() 
    .set_accessibility_validation(AccessibilitySettings(AccessibilityLevel.AAA, AccessibilityGuidelinesVersion.WCAG_2_1))
    # ... other configurations    
    )