fix: typos in documentation (#7968)

This commit is contained in:
Alex Rudenko 2022-02-07 14:03:54 +01:00 committed by GitHub
parent 9afdc6300b
commit 41ab4e9127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -4644,9 +4644,9 @@ This method returns boxes of the element, or `null` if the element is not visibl
- `button` <"left"|"right"|"middle"> Defaults to `left`. - `button` <"left"|"right"|"middle"> Defaults to `left`.
- `clickCount` <[number]> defaults to 1. See [UIEvent.detail]. - `clickCount` <[number]> defaults to 1. See [UIEvent.detail].
- `delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0. - `delay` <[number]> Time to wait between `mousedown` and `mouseup` in milliseconds. Defaults to 0.
- `offset` <[Object]> Offset in pixels relative to the top-left corder of the border box of the element. - `offset` <[Object]> Offset in pixels relative to the top-left corner of the border box of the element.
- `x` <number> x-offset in pixels relative to the top-left corder of the border box of the element. - `x` <number> x-offset in pixels relative to the top-left corner of the border box of the element.
- `y` <number> y-offset in pixels relative to the top-left corder of the border box of the element. - `y` <number> y-offset in pixels relative to the top-left corner of the border box of the element.
- returns: <[Promise]> Promise which resolves when the element is successfully clicked. Promise gets rejected if the element is detached from DOM. - returns: <[Promise]> Promise which resolves when the element is successfully clicked. Promise gets rejected if the element is detached from DOM.
This method scrolls element into view if needed, and then uses [page.mouse](#pagemouse) to click in the center of the element. This method scrolls element into view if needed, and then uses [page.mouse](#pagemouse) to click in the center of the element.
@ -4655,8 +4655,8 @@ If the element is detached from DOM, the method throws an error.
#### elementHandle.clickablePoint([offset]) #### elementHandle.clickablePoint([offset])
- `offset` <[Object]> - `offset` <[Object]>
- `x` <number> x-offset in pixels relative to the top-left corder of the border box of the element. - `x` <number> x-offset in pixels relative to the top-left corner of the border box of the element.
- `y` <number> y-offset in pixels relative to the top-left corder of the border box of the element. - `y` <number> y-offset in pixels relative to the top-left corner of the border box of the element.
- returns: <[Promise<[Point]>]> Resolves to the x, y point that describes the element's position. - returns: <[Promise<[Point]>]> Resolves to the x, y point that describes the element's position.
#### elementHandle.contentFrame() #### elementHandle.contentFrame()

View File

@ -39,7 +39,7 @@ async function attachFrame(frameId, url) {
await page.evaluateHandle(attachFrame, 'frame1', 'https://example.com/'); await page.evaluateHandle(attachFrame, 'frame1', 'https://example.com/');
// At this point there should be a message in the output: // At this point there should be a message in the output:
// puppeteer:frame The frame '...' moved to another session. Out-of-proccess // puppeteer:frame The frame '...' moved to another session. Out-of-process
// iframes (OOPIF) are not supported by Puppeteer yet. // iframes (OOPIF) are not supported by Puppeteer yet.
// https://github.com/puppeteer/puppeteer/issues/2548 // https://github.com/puppeteer/puppeteer/issues/2548

View File

@ -102,7 +102,7 @@ class BrowserFetcher {
*/ */
constructor(projectRoot, options = {}) { constructor(projectRoot, options = {}) {
this._product = (options.product || 'chromium').toLowerCase(); this._product = (options.product || 'chromium').toLowerCase();
assert(this._product === 'chromium' || this._product === 'firefox', `Unkown product: "${options.product}"`); assert(this._product === 'chromium' || this._product === 'firefox', `Unknown product: "${options.product}"`);
this._downloadsFolder = options.path || path.join(projectRoot, '.local-browser'); this._downloadsFolder = options.path || path.join(projectRoot, '.local-browser');
this._downloadHost = options.host || downloadURLs[this._product].host; this._downloadHost = options.host || downloadURLs[this._product].host;
this._platform = options.platform || ''; this._platform = options.platform || '';

View File

@ -32,7 +32,7 @@ import {
} from './NetworkConditions.js'; } from './NetworkConditions.js';
/** /**
* Settings that are common to the Puppeteer class, regardless of enviroment. * Settings that are common to the Puppeteer class, regardless of environment.
* @internal * @internal
*/ */
export interface CommonPuppeteerSettings { export interface CommonPuppeteerSettings {