Assistive-Webdriver

Home > assistive-playwright-client > ExpectedText

ExpectedText type

Type of an expectation from a message coming from the screen reader.

Signature:

export declare type ExpectedText = ExpectedText[] | string | RegExp | ((text: string) => boolean);

References: ExpectedText

Remarks

isMatch() can be used to check whether a specific message screenReaderText from the screen reader matches an expectation expectedText and ScreenReaderClient.waitForMessage() can be used to wait for a message from the screen reader that matches the expectation expectedText.

expectedText can be: