Skip to main content

AccessibilitySettings class

A class that is used to set up accessibility validation.

Using statement

using Applitools;

AccessibilitySettings 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

C#

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

GuidelinesVersion property

Syntax

AccessibilityGuidelinesVersion value; // give relevant initial value
obj.GuidelinesVersion = value;
value = obj.GuidelinesVersion

Type: AccessibilityGuidelinesVersion

Level property

Syntax

AccessibilityLevel value; // give relevant initial value
obj.Level = value;
value = obj.Level

Type: AccessibilityLevel