From 38d511b5c2878570511f4d10a54aeda2c6aaacba Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:22:09 +0100 Subject: [PATCH] docs: fix some api-extractor warnings (#9806) --- docs/api/puppeteer.elementhandle.md | 2 +- docs/api/puppeteer.elementhandle.screenshot.md | 2 +- docs/api/puppeteer.page.addstyletag.md | 2 +- docs/api/puppeteer.page.md | 2 +- docs/api/puppeteer.protocolerror.md | 8 ++++---- packages/puppeteer-core/src/api/ElementHandle.ts | 2 +- packages/puppeteer-core/src/api/Page.ts | 2 +- .../src/common/CustomQueryHandler.ts | 4 ++-- packages/puppeteer-core/src/common/Errors.ts | 8 ++------ .../puppeteer-core/src/common/ExecutionContext.ts | 15 --------------- .../puppeteer-core/src/common/NetworkManager.ts | 3 +++ .../puppeteer-core/src/common/QueryHandler.ts | 4 ++-- packages/puppeteer-core/src/common/common.ts | 1 + packages/puppeteer-core/src/node/BrowserRunner.ts | 3 +++ .../puppeteer-core/src/node/FirefoxLauncher.ts | 2 +- packages/puppeteer-core/src/puppeteer-core.ts | 15 +++++++++++++++ packages/puppeteer/src/puppeteer.ts | 15 +++++++++++++++ 17 files changed, 54 insertions(+), 36 deletions(-) diff --git a/docs/api/puppeteer.elementhandle.md b/docs/api/puppeteer.elementhandle.md index 0fdeb068..a62395cb 100644 --- a/docs/api/puppeteer.elementhandle.md +++ b/docs/api/puppeteer.elementhandle.md @@ -69,7 +69,7 @@ The constructor for this class is marked as internal. Third-party code should no | [hover(this)](./puppeteer.elementhandle.hover.md) | | This method scrolls element into view if needed, and then uses [Page.mouse](./puppeteer.page.mouse.md) to hover over the center of the element. If the element is detached from DOM, the method throws an error. | | [isIntersectingViewport(this, options)](./puppeteer.elementhandle.isintersectingviewport.md) | | Resolves to true if the element is visible in the current viewport. | | [press(key, options)](./puppeteer.elementhandle.press.md) | | Focuses the element, and then uses [Keyboard.down()](./puppeteer.keyboard.down.md) and [Keyboard.up()](./puppeteer.keyboard.up.md). | -| [screenshot(this, options)](./puppeteer.elementhandle.screenshot.md) | | This method scrolls element into view if needed, and then uses to take a screenshot of the element. If the element is detached from DOM, the method throws an error. | +| [screenshot(this, options)](./puppeteer.elementhandle.screenshot.md) | | This method scrolls element into view if needed, and then uses [Page.screenshot()](./puppeteer.page.screenshot_2.md) to take a screenshot of the element. If the element is detached from DOM, the method throws an error. | | [select(values)](./puppeteer.elementhandle.select.md) | | Triggers a change and input event once all the provided options have been selected. If there's no <select> element matching selector, the method throws an error. | | [tap(this)](./puppeteer.elementhandle.tap.md) | | This method scrolls element into view if needed, and then uses [Touchscreen.tap()](./puppeteer.touchscreen.tap.md) to tap in the center of the element. If the element is detached from DOM, the method throws an error. | | [toElement(tagName)](./puppeteer.elementhandle.toelement.md) | | Converts the current handle to the given element type. | diff --git a/docs/api/puppeteer.elementhandle.screenshot.md b/docs/api/puppeteer.elementhandle.screenshot.md index c8a099a9..56ae127a 100644 --- a/docs/api/puppeteer.elementhandle.screenshot.md +++ b/docs/api/puppeteer.elementhandle.screenshot.md @@ -4,7 +4,7 @@ sidebar_label: ElementHandle.screenshot # ElementHandle.screenshot() method -This method scrolls element into view if needed, and then uses to take a screenshot of the element. If the element is detached from DOM, the method throws an error. +This method scrolls element into view if needed, and then uses [Page.screenshot()](./puppeteer.page.screenshot_2.md) to take a screenshot of the element. If the element is detached from DOM, the method throws an error. #### Signature: diff --git a/docs/api/puppeteer.page.addstyletag.md b/docs/api/puppeteer.page.addstyletag.md index 5814f9e5..0a46975f 100644 --- a/docs/api/puppeteer.page.addstyletag.md +++ b/docs/api/puppeteer.page.addstyletag.md @@ -6,7 +6,7 @@ sidebar_label: Page.addStyleTag Adds a `` tag into the page with the desired URL or a `