Detects events from the browser application.
|event||string||The only accepted event value is 'disconnected'.|
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.
|promise||On returns a Promise that is resolved when the browser process is disconnected.|