playwright/docs/src/api/class-browserserver.md

34 lines
720 B
Markdown
Raw Normal View History

# class: BrowserServer
2022-07-05 16:24:50 -08:00
* since: v1.8
* langs: js
## event: BrowserServer.close
2022-07-05 16:24:50 -08:00
* since: v1.8
Emitted when the browser server closes.
## async method: BrowserServer.close
2022-07-05 16:24:50 -08:00
* since: v1.8
Closes the browser gracefully and makes sure the process is terminated.
## async method: BrowserServer.kill
2022-07-05 16:24:50 -08:00
* since: v1.8
Kills the browser process and waits for the process to exit.
## method: BrowserServer.process
2022-07-05 16:24:50 -08:00
* since: v1.8
- returns: <[ChildProcess]>
Spawned browser application process.
## method: BrowserServer.wsEndpoint
2022-07-05 16:24:50 -08:00
* since: v1.8
- returns: <[string]>
Browser websocket url.
Browser websocket endpoint which can be used as an argument to [`method: BrowserType.connect`] to establish connection
to the browser.