Skip to main content

AccessibilitySettings class

A class that is used to set up accessibility validation.

Import statement

import com.applitools.eyes.AccessibilitySettings;

AccessibilitySettings 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

Java
/* 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);

getGuidelinesVersion method

Syntax

AccessibilityGuidelinesVersion value = obj.getGuidelinesVersion();

Parameters

This method does not take any parameters.

Return value

Type: AccessibilityGuidelinesVersion

getLevel method

Syntax

AccessibilityLevel value = obj.getLevel();

Parameters

This method does not take any parameters.

Return value

Type: AccessibilityLevel