Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgreffier committed Sep 11, 2022
1 parent 8b0b09b commit 0cf2b0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/api/class-framelocator.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ await locator.ClickAsync();

**Strictness**

Frame locators are strict. This means that all operations on frame locators will throw if more than one element matches given selector.
Frame locators are strict. This means that all operations on frame locators will throw if more than one element matches a given selector.

```js
// Throws if there are several frames in DOM:
Expand Down
5 changes: 2 additions & 3 deletions docs/src/mock-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: "Mock APIs"

Playwright provides native support for most of the browser features. However, there are some experimental APIs
and APIs which are not (yet) fully supported by all browsers. Playwright usually doesn't provide dedicated
automation APIs in such cases. You can use mocks to test behavior of your application in such cases. This guide
automation APIs in such cases. You can use mocks to test the behavior of your application in such cases. This guide
gives a few examples.

<!-- TOC -->
Expand All @@ -18,8 +18,7 @@ battery status.

## Creating mocks

Since the page may be calling the API very early while loading it's important to setup all the mocks before the
page started loading. The easiest way to achieve that is to call [`method: Page.addInitScript`]:
Since the page may be calling the API very early while loading it's important to setup all the mocks before the page started loading. The easiest way to achieve that is to call [`method: Page.addInitScript`]:

```js
await page.addInitScript(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-core/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14499,7 +14499,7 @@ export interface FileChooser {
* **Strictness**
*
* Frame locators are strict. This means that all operations on frame locators will throw if more than one element matches
* given selector.
* a given selector.
*
* ```js
* // Throws if there are several frames in DOM:
Expand Down

0 comments on commit 0cf2b0e

Please sign in to comment.