class: BrowserServer

class: BrowserServer

  • event: ‘close’
  • browserServer.close()
  • browserServer.kill()
  • browserServer.process()
  • browserServer.wsEndpoint()

event: ‘close’

Emitted when the browser server closes.

browserServer.close()

  • returns: <Promise “Promise”)>

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

browserServer.kill()

  • returns: <Promise “Promise”)>

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

browserServer.process()

  • returns: <ChildProcess “ChildProcess”)> Spawned browser application process.

browserServer.wsEndpoint()

  • returns: <string “String”)> Browser websocket url.

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