Assistive-Webdriver

Home > assistive-playwright-client > ScreenReaderClient > once

ScreenReaderClient.once() method

Registers a one-time listener for the close event, that will be called when the connection to the screen reader is closed

Signature:

once(event: "close", listener: () => void): this;

Parameters

Parameter Type Description
event “close” "close"
listener () => void function to be called with the errorThe listener can removed with ScreenReaderClient.off().

Returns:

this