docs: fixed various typos (#2633)
This commit is contained in:
parent
38089aba88
commit
20b23cd21e
|
|
@ -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.
|
† [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.
|
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
|
### 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
|
### Enabled
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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`.
|
- `accuracy` <[number]> Non-negative accuracy value. Defaults to `0`.
|
||||||
- returns: <[Promise]>
|
- 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
|
```js
|
||||||
await browserContext.setGeolocation({latitude: 59.95, longitude: 30.31667});
|
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:
|
An example of using JavaScript coverage to produce Istambul report for page load:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { chromium } = require('.');
|
const { chromium } = require('playwright');
|
||||||
const v8toIstanbul = require('v8-to-istanbul');
|
const v8toIstanbul = require('v8-to-istanbul');
|
||||||
|
|
||||||
(async() => {
|
(async() => {
|
||||||
|
|
|
||||||
|
|
@ -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.
|
Type into the field character by character, as if it was a user with a real keyboard.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Type characted by character
|
// Type character by character
|
||||||
await page.type('#area', 'Hello World!');
|
await page.type('#area', 'Hello World!');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -215,7 +215,7 @@ await page.press('#name', 'Shift+A');
|
||||||
await page.press('#name', 'Shift+ArrowLeft');
|
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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
### Chrome headless doesn't launch on Linux/WSL
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue