mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: fixing docs (#11460)
This commit is contained in:
parent
39e3d4bceb
commit
1014abc087
@ -78,4 +78,4 @@ await browser2.close();
|
|||||||
| [userAgent()](./puppeteer.browser.useragent.md) | | <p>Gets this [browser's](./puppeteer.browser.md) original user agent.</p><p>[Pages](./puppeteer.page.md) can override the user agent with [Page.setUserAgent()](./puppeteer.page.setuseragent.md).</p> |
|
| [userAgent()](./puppeteer.browser.useragent.md) | | <p>Gets this [browser's](./puppeteer.browser.md) original user agent.</p><p>[Pages](./puppeteer.page.md) can override the user agent with [Page.setUserAgent()](./puppeteer.page.setuseragent.md).</p> |
|
||||||
| [version()](./puppeteer.browser.version.md) | | <p>Gets a string representing this [browser's](./puppeteer.browser.md) name and version.</p><p>For headless browser, this is similar to <code>"HeadlessChrome/61.0.3153.0"</code>. For non-headless or new-headless, this is similar to <code>"Chrome/61.0.3153.0"</code>. For Firefox, it is similar to <code>"Firefox/116.0a1"</code>.</p><p>The format of [Browser.version()](./puppeteer.browser.version.md) might change with future releases of browsers.</p> |
|
| [version()](./puppeteer.browser.version.md) | | <p>Gets a string representing this [browser's](./puppeteer.browser.md) name and version.</p><p>For headless browser, this is similar to <code>"HeadlessChrome/61.0.3153.0"</code>. For non-headless or new-headless, this is similar to <code>"Chrome/61.0.3153.0"</code>. For Firefox, it is similar to <code>"Firefox/116.0a1"</code>.</p><p>The format of [Browser.version()](./puppeteer.browser.version.md) might change with future releases of browsers.</p> |
|
||||||
| [waitForTarget(predicate, options)](./puppeteer.browser.waitfortarget.md) | | <p>Waits until a [target](./puppeteer.target.md) matching the given <code>predicate</code> appears and returns it.</p><p>This will look all open [browser contexts](./puppeteer.browsercontext.md).</p> |
|
| [waitForTarget(predicate, options)](./puppeteer.browser.waitfortarget.md) | | <p>Waits until a [target](./puppeteer.target.md) matching the given <code>predicate</code> appears and returns it.</p><p>This will look all open [browser contexts](./puppeteer.browsercontext.md).</p> |
|
||||||
| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | | <p>Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).</p><p>This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).</p><p>You can find the debugger URL (<code>webSocketDebuggerUrl</code>) from <code>http://${host}:${port}/json/version</code>.</p><p>See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.</p> |
|
| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | | <p>Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).</p><p>This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).</p><p>You can find the debugger URL (<code>webSocketDebuggerUrl</code>) from <code>http://HOST:PORT/json/version</code>.</p><p>See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.</p> |
|
||||||
|
@ -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).
|
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.
|
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
|
## Remarks
|
||||||
|
|
||||||
The format is always `ws://${host}:${port}/devtools/browser/<id>`.
|
The format is always `ws://HOST:PORT/devtools/browser/<id>`.
|
||||||
|
@ -300,13 +300,13 @@ export abstract class Browser extends EventEmitter<BrowserEvents> {
|
|||||||
* This is usually used with {@link Puppeteer.connect}.
|
* This is usually used with {@link Puppeteer.connect}.
|
||||||
*
|
*
|
||||||
* You can find the debugger URL (`webSocketDebuggerUrl`) from
|
* You can find the debugger URL (`webSocketDebuggerUrl`) from
|
||||||
* `http://${host}:${port}/json/version`.
|
* `http://HOST:PORT/json/version`.
|
||||||
*
|
*
|
||||||
* See {@link
|
* See {@link
|
||||||
* https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target
|
* https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target
|
||||||
* | browser endpoint} for more information.
|
* | browser endpoint} for more information.
|
||||||
*
|
*
|
||||||
* @remarks The format is always `ws://${host}:${port}/devtools/browser/<id>`.
|
* @remarks The format is always `ws://HOST:PORT/devtools/browser/<id>`.
|
||||||
*/
|
*/
|
||||||
abstract wsEndpoint(): string;
|
abstract wsEndpoint(): string;
|
||||||
|
|
||||||
|
@ -149,7 +149,6 @@ export class MarkdownDocumenter {
|
|||||||
outputFolder: this._outputFolder,
|
outputFolder: this._outputFolder,
|
||||||
documenter: new MarkdownDocumenterAccessor({
|
documenter: new MarkdownDocumenterAccessor({
|
||||||
getLinkForApiItem: (apiItem: ApiItem) => {
|
getLinkForApiItem: (apiItem: ApiItem) => {
|
||||||
console.log(apiItem);
|
|
||||||
return this._getLinkFilenameForApiItem(apiItem);
|
return this._getLinkFilenameForApiItem(apiItem);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
@ -157,7 +156,6 @@ export class MarkdownDocumenter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log();
|
|
||||||
this._deleteOldOutputFiles();
|
this._deleteOldOutputFiles();
|
||||||
|
|
||||||
this._writeApiItemPage(this._apiModel.members[0]!);
|
this._writeApiItemPage(this._apiModel.members[0]!);
|
||||||
|
@ -10,7 +10,6 @@ class MonotonicCountMap {
|
|||||||
#map = new Map();
|
#map = new Map();
|
||||||
|
|
||||||
get(key) {
|
get(key) {
|
||||||
console.log(key);
|
|
||||||
let counter = this.#map.get(key);
|
let counter = this.#map.get(key);
|
||||||
if (!counter) {
|
if (!counter) {
|
||||||
counter = ++this.#counter;
|
counter = ++this.#counter;
|
||||||
|
Loading…
Reference in New Issue
Block a user