AccessibilitySettings method

Class: AccessibilitySettingsPlatform: AppiumLanguage: C# SDK:

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

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

Syntax

AccessibilitySettings obj = new AccessibilitySettings(level, version);

Parameters

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

Return value

Type: AccessibilitySettings

Example

/* test suite setup */  
    suiteConfig = (Configuration) new Configuration() 
        .SetAccessibilityValidation(
            new AccessibilitySettings(
                AccessibilityLevel.AA,
                AccessibilityGuidelinesVersion.WCAG_2_1)
        )
        /* ... other configurations */  ; 
    /* 
     * Assign the configuration to all newly created Eyes instances
     */
    eyes = new Eyes(runner);
    eyes.SetConfiguration(suiteConfig);