Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos in documentation #7968

Merged
merged 1 commit into from Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/api.md
Expand Up @@ -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`.
- `clickCount` <[number]> defaults to 1. See [UIEvent.detail].
- `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.
- `x` <number> x-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 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 corner 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.

This method scrolls element into view if needed, and then uses [page.mouse](#pagemouse) to click in the center of the element.
Expand All @@ -4655,8 +4655,8 @@ If the element is detached from DOM, the method throws an error.
#### elementHandle.clickablePoint([offset])

- `offset` <[Object]>
- `x` <number> x-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 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 corner of the border box of the element.
- returns: <[Promise<[Point]>]> Resolves to the x, y point that describes the element's position.

#### elementHandle.contentFrame()
Expand Down
2 changes: 1 addition & 1 deletion examples/oopif.js
Expand Up @@ -39,7 +39,7 @@ async function attachFrame(frameId, url) {
await page.evaluateHandle(attachFrame, 'frame1', 'https://example.com/');

// 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.
// https://github.com/puppeteer/puppeteer/issues/2548

Expand Down
2 changes: 1 addition & 1 deletion experimental/puppeteer-firefox/lib/BrowserFetcher.js
Expand Up @@ -102,7 +102,7 @@ class BrowserFetcher {
*/
constructor(projectRoot, options = {}) {
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._downloadHost = options.host || downloadURLs[this._product].host;
this._platform = options.platform || '';
Expand Down
2 changes: 1 addition & 1 deletion src/common/Puppeteer.ts
Expand Up @@ -32,7 +32,7 @@ import {
} 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
*/
export interface CommonPuppeteerSettings {
Expand Down