accessibilityRegions property

Class: CheckSettingsPlainPlatform: PlaywrightLanguage: JavaScript SDK:

Define multiple accessibility regions and their types.

For more information about the Contrast advisor feature see Contrast advisor.

Syntax

eyes.check({ accessibilityRegions: value });

Type:

(
  | {
      region: RegionPlain | ElementHandle | Selector;
      type?: AccessibilityRegionType | undefined;
    }
  | RegionPlain
  | ElementHandle
  | Selector
)[];

Type definitions

RegionPlain
Used to describe a position and rectangular region in an image. RegionPlain is defined as: LocationPlain&RectangleSizePlain
Selector
Used to identify an HTML element defined as string|{selector:string;type:string}.
RegionPlain
Used to describe a position and rectangular region in an image. RegionPlain is defined as: LocationPlain&RectangleSizePlain
Selector
Used to identify an HTML element defined as string|{selector:string;type:string}.