Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

Update params.md: fix "it's" typos (#39180)

wyattscarpenterbfd1ec67a923
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 2b2587acdc..d5272fbed2 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -1459,7 +1459,7 @@ Consider the following DOM structure.
<button data-testid="directions">Itinéraire</button>
```
-You can locate the element by it's test id:
+You can locate the element by its test id:
```js
await page.getByTestId('directions').click();
@@ -1731,7 +1731,7 @@ Consider the following DOM structure.
<button>Submit</button>
```
-You can locate each element by it's implicit role:
+You can locate each element by its implicit role:
```js
await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts
index fc54fbfe73..18f9f5e3e5 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -3003,7 +3003,7 @@ export interface Page {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -3108,7 +3108,7 @@ export interface Page {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -7022,7 +7022,7 @@ export interface Frame {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -7127,7 +7127,7 @@ export interface Frame {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -13837,7 +13837,7 @@ export interface Locator {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -13942,7 +13942,7 @@ export interface Locator {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -20066,7 +20066,7 @@ export interface FrameLocator {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -20172,7 +20172,7 @@ export interface FrameLocator {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index fc54fbfe73..18f9f5e3e5 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -3003,7 +3003,7 @@ export interface Page {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -3108,7 +3108,7 @@ export interface Page {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -7022,7 +7022,7 @@ export interface Frame {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -7127,7 +7127,7 @@ export interface Frame {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -13837,7 +13837,7 @@ export interface Locator {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -13942,7 +13942,7 @@ export interface Locator {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();
@@ -20066,7 +20066,7 @@ export interface FrameLocator {
* <button>Submit</button>
* ```
*
- * You can locate each element by it's implicit role:
+ * You can locate each element by its implicit role:
*
* ```js
* await expect(page.getByRole('heading', { name: 'Sign up' })).toBeVisible();
@@ -20172,7 +20172,7 @@ export interface FrameLocator {
* <button data-testid="directions">Itinéraire</button>
* ```
*
- * You can locate the element by it's test id:
+ * You can locate the element by its test id:
*
* ```js
* await page.getByTestId('directions').click();