File tree Expand file tree Collapse file tree 2 files changed +0
-56
lines changed
next/javascript-api/k6-browser/page
v1.3.x/javascript-api/k6-browser/page Expand file tree Collapse file tree 2 files changed +0
-56
lines changed Original file line number Diff line number Diff line change @@ -114,34 +114,6 @@ export default async function () {
114114}
115115```
116116
117- ## Label association patterns
118-
119- The ` getByLabel() ` method works with several HTML patterns for associating labels with form controls:
120-
121- 1 . Explicit association with ` for ` attribute:
122-
123- <!-- eslint-skip -->
124-
125- ``` html
126- <label for =" username" >Username</label > <input type =" text" id =" username" name =" username" />
127- ```
128-
129- 1 . ARIA labeling:
130-
131- <!-- eslint-skip -->
132-
133- ``` html
134- <span id =" username-label" >Username</span > <input type =" text" aria-labelledby =" username-label" />
135- ```
136-
137- 1 . ARIA label attribute:
138-
139- <!-- eslint-skip -->
140-
141- ``` html
142- <input type =" text" aria-label =" Username" />
143- ```
144-
145117{{< docs/shared source="k6" lookup="browser/getby-apis/getbylabel-tips.md" version="<K6_VERSION>" >}}
146118
147119## Related
Original file line number Diff line number Diff line change @@ -118,34 +118,6 @@ export default async function () {
118118}
119119```
120120
121- ## Label association patterns
122-
123- The ` getByLabel() ` method works with several HTML patterns for associating labels with form controls:
124-
125- 1 . Explicit association with ` for ` attribute:
126-
127- <!-- eslint-skip -->
128-
129- ``` html
130- <label for =" username" >Username</label > <input type =" text" id =" username" name =" username" />
131- ```
132-
133- 1 . ARIA labeling:
134-
135- <!-- eslint-skip -->
136-
137- ``` html
138- <span id =" username-label" >Username</span > <input type =" text" aria-labelledby =" username-label" />
139- ```
140-
141- 1 . ARIA label attribute:
142-
143- <!-- eslint-skip -->
144-
145- ``` html
146- <input type =" text" aria-label =" Username" />
147- ```
148-
149121{{< docs/shared source="k6" lookup="browser/getby-apis/getbylabel-tips.md" version="<K6_VERSION>" >}}
150122
151123## Related
You can’t perform that action at this time.
0 commit comments