Version: 1.3.0
ChromiumBrowser
- extends: Browser
Chromium-specific features including Tracing, service worker support, etc.
You can use chromiumBrowser.startTracing
and chromiumBrowser.stopTracing
to create a trace file which can be opened in Chrome DevTools or timeline viewer.
- chromiumBrowser.newBrowserCDPSession()
- chromiumBrowser.startTracing([page, options])
- chromiumBrowser.stopTracing()
- event: 'disconnected'
- browser.close()
- browser.contexts()
- browser.isConnected()
- browser.newContext([options])
- browser.newPage([options])
- browser.version()
#
chromiumBrowser.newBrowserCDPSession()- returns: <Promise<CDPSession>> Promise that resolves to the newly created browser session.
#
chromiumBrowser.startTracing([page, options])page
<Page> Optional, if specified, tracing includes screenshots of the given page.options
<Object>- returns: <Promise>
Only one trace can be active at a time per browser.