diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index 05a1d745dc..fbcff42573 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -1190,7 +1190,7 @@ Allows locating elements by their alt text. For example, this method will find t
## template-locator-get-by-label-text
-Allows locating input elements by the text of the associated label. For example, this method will find the input by label text Password in the following DOM:
+Allows locating input elements by the text of the associated label. For example, this method will find the input by label text "Password" in the following DOM:
```html
@@ -1213,7 +1213,7 @@ Note that many html elements have an implicitly [defined role](https://w3c.githu
## template-locator-get-by-title
-Allows locating elements by their title. For example, this method will find the button by its title "Submit":
+Allows locating elements by their title. For example, this method will find the button by its title "Place the order":
```html
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 902264f5e7..4117c0635f 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -2465,7 +2465,7 @@ export interface Page {
/**
* Allows locating input elements by the text of the associated label. For example, this method will find the input by
- * label text Password in the following DOM:
+ * label text "Password" in the following DOM:
*
* ```html
*
@@ -2599,7 +2599,7 @@ export interface Page {
}): Locator;
/**
- * Allows locating elements by their title. For example, this method will find the button by its title "Submit":
+ * Allows locating elements by their title. For example, this method will find the button by its title "Place the order":
*
* ```html
*
@@ -5565,7 +5565,7 @@ export interface Frame {
/**
* Allows locating input elements by the text of the associated label. For example, this method will find the input by
- * label text Password in the following DOM:
+ * label text "Password" in the following DOM:
*
* ```html
*
@@ -5699,7 +5699,7 @@ export interface Frame {
}): Locator;
/**
- * Allows locating elements by their title. For example, this method will find the button by its title "Submit":
+ * Allows locating elements by their title. For example, this method will find the button by its title "Place the order":
*
* ```html
*
@@ -10009,7 +10009,7 @@ export interface Locator {
/**
* Allows locating input elements by the text of the associated label. For example, this method will find the input by
- * label text Password in the following DOM:
+ * label text "Password" in the following DOM:
*
* ```html
*
@@ -10143,7 +10143,7 @@ export interface Locator {
}): Locator;
/**
- * Allows locating elements by their title. For example, this method will find the button by its title "Submit":
+ * Allows locating elements by their title. For example, this method will find the button by its title "Place the order":
*
* ```html
*
@@ -15276,7 +15276,7 @@ export interface FrameLocator {
/**
* Allows locating input elements by the text of the associated label. For example, this method will find the input by
- * label text Password in the following DOM:
+ * label text "Password" in the following DOM:
*
* ```html
*
@@ -15410,7 +15410,7 @@ export interface FrameLocator {
}): Locator;
/**
- * Allows locating elements by their title. For example, this method will find the button by its title "Submit":
+ * Allows locating elements by their title. For example, this method will find the button by its title "Place the order":
*
* ```html
*