Assistive-Webdriver

Home > assistive-webdriver > refreshScreenReaderText

refreshScreenReaderText() function

Calls the assistive-webdriver server to get any new text coming from the screen reader, and, if there is any, synchronously calls listeners registered with addScreenReaderTextListener().

Signature:

export declare function refreshScreenReaderText(webdriver: WebdriverLike): Promise<string[]>;

Parameters

Parameter Type Description
webdriver WebdriverLike reference to the selenium-webdriver instance

Returns:

Promise<string[]>