On this page
BrowserServer
Methods
close
Closes the browser gracefully and makes sure the process is terminated.
Usage
await browserServer.close();
Returns
kill
Kills the browser process and waits for the process to exit.
Usage
await browserServer.kill();
Returns
process
Spawned browser application process.
Usage
browserServer.process();
Returns
wsEndpoint
Browser 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')
Emitted when the browser server closes.
Usage
browserServer.on('close', data => {});
© 2024 Microsoft
Licensed under the Apache License, Version 2.0.
https://playwright.dev/docs/api/class-browserserver