Detects events from the browser application.
Parameter | Type | Description |
---|---|---|
event | string | The only accepted event value is 'disconnected'. |
Returns
The returned promise will be resolved when the Browser disconnects from the browser application. Possible reasons for this might be happening as follows:
- Closed or crashed browser application.
- Calling of the browser.close() method.
Type | Description |
---|---|
promise | On returns a Promise that is resolved when the browser process is disconnected. |