diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 2b2587acdc0bb..d5272fbed202c 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -1459,7 +1459,7 @@ Consider the following DOM structure.
```
-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.
```
-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 fc54fbfe73761..18f9f5e3e5e3d 100644
--- a/packages/playwright-client/types/types.d.ts
+++ b/packages/playwright-client/types/types.d.ts
@@ -3003,7 +3003,7 @@ export interface Page {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 fc54fbfe73761..18f9f5e3e5e3d 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -3003,7 +3003,7 @@ export interface Page {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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 {
*
* ```
*
- * 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();