Home > assistive-playwright-client > ScreenReaderClient > on
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;
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