BrowserServer
Methods
close
Added in: v1.8Closes the browser gracefully and makes sure the process is terminated.
Usage
await browserServer.close();
kill
Added in: v1.8Kills the browser process and waits for the process to exit.
Usage
await browserServer.kill();
process
Added in: v1.8Spawned browser application process.
Usage
browserServer.process();
Returns
wsEndpoint
Added in: v1.8Browser websocket url.
Browser websocket endpoint which can be used as an argument to browserType.connect() to establish connection to the browser.
Usage
browserServer.wsEndpoint();
Returns
Events
on('close')
Added in: v1.8Emitted when the browser server closes.
Usage
browserServer.on('close', data => {});