From 20b23cd21edd74157913f44072f2cad56fa94974 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 19 Jun 2020 00:04:21 +0200 Subject: [PATCH] docs: fixed various typos (#2633) --- docs/actionability.md | 4 ++-- docs/api.md | 4 ++-- docs/input.md | 4 ++-- docs/troubleshooting.md | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/actionability.md b/docs/actionability.md index de40e765c6..ae5f45c946 100644 --- a/docs/actionability.md +++ b/docs/actionability.md @@ -17,13 +17,13 @@ Some actions like `page.click()` support `{force: true}` option that disable non † [Attached] check is only performed during selector-based actions. -### Visibile +### Visible Element is considered visible when it has non-empty bounding box and does not have `visibility:hidden` computed style. Note that elements of zero size or with `display:none` are not considered visible. ### Stable -Element is considered stable when it has maintanined the same bounding box for at least two consecutive animation frames. +Element is considered stable when it has maintained the same bounding box for at least two consecutive animation frames. ### Enabled diff --git a/docs/api.md b/docs/api.md index 2dbce28d19..e6875f4d29 100644 --- a/docs/api.md +++ b/docs/api.md @@ -593,7 +593,7 @@ The extra HTTP headers will be sent with every request initiated by any page in - `accuracy` <[number]> Non-negative accuracy value. Defaults to `0`. - returns: <[Promise]> -Sets the contexts's geolocation. Passing `null` or `undefined` emulates position unavailable. +Sets the context's geolocation. Passing `null` or `undefined` emulates position unavailable. ```js await browserContext.setGeolocation({latitude: 59.95, longitude: 30.31667}); @@ -4216,7 +4216,7 @@ Coverage gathers information about parts of JavaScript and CSS that were used by An example of using JavaScript coverage to produce Istambul report for page load: ```js -const { chromium } = require('.'); +const { chromium } = require('playwright'); const v8toIstanbul = require('v8-to-istanbul'); (async() => { diff --git a/docs/input.md b/docs/input.md index 586a97ceca..7a4d3797c8 100644 --- a/docs/input.md +++ b/docs/input.md @@ -162,7 +162,7 @@ await page.dispatchEvent('button#submit', 'click'); Type into the field character by character, as if it was a user with a real keyboard. ```js -// Type characted by character +// Type character by character await page.type('#area', 'Hello World!'); ``` @@ -215,7 +215,7 @@ await page.press('#name', 'Shift+A'); await page.press('#name', 'Shift+ArrowLeft'); ``` -Shortcuts such as `"Control+o"` or `"Control+Shift+T"` are supported as well. When speficied with the modifier, modifier is pressed and being held while the subsequent key is being pressed. +Shortcuts such as `"Control+o"` or `"Control+Shift+T"` are supported as well. When specified with the modifier, modifier is pressed and being held while the subsequent key is being pressed. Note that you still need to specify the capital `A` in `Shift-A` to produce the capital character. `Shift-a` produces a lower-case one as if you had the `CapsLock` toggled. diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 529d84afff..0e727d274a 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -33,7 +33,7 @@ const browser = await playwright.chromium.launch({ }); ``` -> Context: [Puppetteer#3681](https://github.com/puppeteer/puppeteer/issues/3681#issuecomment-447865342). +> Context: [Puppeteer#3681](https://github.com/puppeteer/puppeteer/issues/3681#issuecomment-447865342). ### Chrome headless doesn't launch on Linux/WSL