Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: fix wrong getByLabelText example (#18036)
Max Schmitte986e88c55fc
diff --git a/docs/src/api/params.md b/docs/src/api/params.mdindex 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<label for="password-input">Password:</label>@@ -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<button title='Place the order'>Order Now</button>diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex 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* <label for="password-input">Password:</label>@@ -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* <button title='Place the order'>Order Now</button>@@ -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* <label for="password-input">Password:</label>@@ -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* <button title='Place the order'>Order Now</button>@@ -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* <label for="password-input">Password:</label>@@ -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* <button title='Place the order'>Order Now</button>@@ -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* <label for="password-input">Password:</label>@@ -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* <button title='Place the order'>Order Now</button>