diff --git a/docs/api/puppeteer.browser.md b/docs/api/puppeteer.browser.md index f56a7335eac..289e1f67c63 100644 --- a/docs/api/puppeteer.browser.md +++ b/docs/api/puppeteer.browser.md @@ -78,4 +78,4 @@ await browser2.close(); | [userAgent()](./puppeteer.browser.useragent.md) | |
Gets this [browser's](./puppeteer.browser.md) original user agent.
[Pages](./puppeteer.page.md) can override the user agent with [Page.setUserAgent()](./puppeteer.page.setuseragent.md).
| | [version()](./puppeteer.browser.version.md) | |Gets a string representing this [browser's](./puppeteer.browser.md) name and version.
For headless browser, this is similar to "HeadlessChrome/61.0.3153.0"
. For non-headless or new-headless, this is similar to "Chrome/61.0.3153.0"
. For Firefox, it is similar to "Firefox/116.0a1"
.
The format of [Browser.version()](./puppeteer.browser.version.md) might change with future releases of browsers.
| | [waitForTarget(predicate, options)](./puppeteer.browser.waitfortarget.md) | |Waits until a [target](./puppeteer.target.md) matching the given predicate
appears and returns it.
This will look all open [browser contexts](./puppeteer.browsercontext.md).
| -| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | |Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).
This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).
You can find the debugger URL (webSocketDebuggerUrl
) from http://${host}:${port}/json/version
.
See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.
| +| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | |Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).
This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).
You can find the debugger URL (webSocketDebuggerUrl
) from http://HOST:PORT/json/version
.
See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.
| diff --git a/docs/api/puppeteer.browser.wsendpoint.md b/docs/api/puppeteer.browser.wsendpoint.md index 496719f5279..eb11ec5bf27 100644 --- a/docs/api/puppeteer.browser.wsendpoint.md +++ b/docs/api/puppeteer.browser.wsendpoint.md @@ -8,7 +8,7 @@ Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md). This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md). -You can find the debugger URL (`webSocketDebuggerUrl`) from `http://${host}:${port}/json/version`. +You can find the debugger URL (`webSocketDebuggerUrl`) from `http://HOST:PORT/json/version`. See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information. @@ -26,4 +26,4 @@ string ## Remarks -The format is always `ws://${host}:${port}/devtools/browser/