mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(launcher): add experimental "transport" option to pptr.connect (#3265)
This patch: - adds experimental "transport" option to pptr.connect - uses "transport" option to make sure Puppeteer-Web works with Target.exposeDevToolsProtocol Drive-by: add `browser.target()` to access browser target.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
* [browser.newPage()](#browsernewpage)
|
||||
* [browser.pages()](#browserpages)
|
||||
* [browser.process()](#browserprocess)
|
||||
* [browser.target()](#browsertarget)
|
||||
* [browser.targets()](#browsertargets)
|
||||
* [browser.userAgent()](#browseruseragent)
|
||||
* [browser.version()](#browserversion)
|
||||
@@ -677,6 +678,11 @@ the method will return an array with all the pages in all browser contexts.
|
||||
#### browser.process()
|
||||
- returns: <?[ChildProcess]> Spawned browser process. Returns `null` if the browser instance was created with [`puppeteer.connect`](#puppeteerconnectoptions) method.
|
||||
|
||||
#### browser.target()
|
||||
- returns: <[Target]>
|
||||
|
||||
A target associated with the browser.
|
||||
|
||||
#### browser.targets()
|
||||
- returns: <[Array]<[Target]>>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user