Assistive-Webdriver

Home > assistive-playwright-client > ScreenReaderClient > on

ScreenReaderClient.on() method

Registers a listener for the error event, that will be called if an error happens in the connection with the screen reader.

Signature:

on(event: "error", listener: (error: any) => void): this;

Parameters

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

Returns:

this