AccessibilitySettings method

Class: AccessibilitySettingsPlatform: EspressoLanguage: Java 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, guidelinesVersion);

Parameters

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

Return value

Type: AccessibilitySettings

Example

/* test suite setup */  
    suiteConfig = 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);