From 0cf2b0e0aec809444da9fc9375f602c1183eed0f Mon Sep 17 00:00:00 2001 From: jfgreffier Date: Sun, 11 Sep 2022 18:09:12 +0200 Subject: [PATCH] docs: fix typos --- docs/src/api/class-framelocator.md | 2 +- docs/src/mock-js.md | 5 ++--- packages/playwright-core/types/types.d.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/src/api/class-framelocator.md b/docs/src/api/class-framelocator.md index 96bdb5cd376d7..a73520a8b686d 100644 --- a/docs/src/api/class-framelocator.md +++ b/docs/src/api/class-framelocator.md @@ -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: diff --git a/docs/src/mock-js.md b/docs/src/mock-js.md index ce8726ad3fbd1..4510ac4bba638 100644 --- a/docs/src/mock-js.md +++ b/docs/src/mock-js.md @@ -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. @@ -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(() => { diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 06013c0769343..d3f93e89a4f78 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -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: