mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
4.9 KiB
4.9 KiB
id | title |
---|---|
class-browserserver | BrowserServer |
- browserServer.on('close')
- browserServer.close()
- browserServer.kill()
- browserServer.process()
- browserServer.wsEndpoint()
browserServer.on('close')
Emitted when the browser server closes.
browserServer.close()
- returns: <Promise>
Closes the browser gracefully and makes sure the process is terminated.
browserServer.kill()
- returns: <Promise>
Kills the browser process and waits for the process to exit.
browserServer.process()
- returns: <ChildProcess>
Spawned browser application process.
browserServer.wsEndpoint()
- returns: <string>
Browser websocket url.
Browser websocket endpoint which can be used as an argument to browserType.connect(params) to establish connection to the browser.