Skip to content

BrowserServer ​

Added in: v1.8

Methods ​

browserServer.close() ​

Added in: v1.8 async

Closes the browser gracefully and makes sure the process is terminated.

browserServer.kill() ​

Added in: v1.8 async

Kills the browser process and waits for the process to exit.

browserServer.process() ​

Added in: v1.8

Spawned browser application process.

Returns

  • ChildProcess

browserServer.wsEndpoint() ​

Added in: v1.8

Browser websocket url.

Browser websocket endpoint which can be used as an argument to browserType.connect() to establish connection to the browser.

Returns

  • string

Events ​

browserServer.on('close') ​

Added in: v1.8

Emitted when the browser server closes.

Event data

  • void

Released under the Apache 2.0 License.