import { escapeValue } from '../utils/escapeUtil'; import { CssLocator } from './CssLocator'; import type { LocatorRelativePosition } from './LocatorRelativePosition'; import type { PartLocator } from './PartLocator'; export type ByAriaLabelSource = { _id: 'byAriaLabel'; value: string; relative: LocatorRelativePosition; }; /** * Locate elements by the verbatim value of their `aria-label` attribute. * * This matches the literal `aria-label` attribute only — it does NOT resolve the * computed accessible name (from `aria-labelledby`, an associated `