Assistive-Webdriver

Home > assistive-playwright-client > ScreenReaderClient > on

ScreenReaderClient.on() method

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

Signature:

on(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