docs: fix wrong getByLabelText example (#18036)

This commit is contained in:
Max Schmitt 2022-10-12 23:02:45 +03:00 committed by GitHub
parent 347544db09
commit e986e88c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -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>

View File

@ -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>