You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/k6/next/javascript-api/k6-browser/page/_index.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,13 @@ Page provides methods to interact with a single tab in a running web browser. A
28
28
|[focus(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/focus/)| Fetches an element with `selector` and focuses on it. |
29
29
|[frames()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/frames)| Returns an array of frames on the page. |
30
30
|[getAttribute(selector, name[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getattribute/)| Returns the element attribute value for the given attribute name. |
31
+
|[getByAltText(altText[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbyalttext/)| Returns a locator for elements with the specified `alt` attribute text. |
32
+
|[getByLabel(text[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbylabel/)| Returns a locator for form controls with the specified label text. |
33
+
|[getByPlaceholder(placeholder[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbyplaceholder/)| Returns a locator for input elements with the specified `placeholder` attribute text. |
34
+
|[getByRole(role[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbyrole/)| Returns a locator for elements with the specified ARIA role. |
35
+
|[getByTestId(testId)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbytestid/)| Returns a locator for elements with the specified `data-testid` attribute. |
36
+
|[getByText(text[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbytext/)| Returns a locator for elements containing the specified text. |
37
+
|[getByTitle(title[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/getbytitle/)| Returns a locator for elements with the specified `title` attribute. |
31
38
|[goto(url[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/goto/)| Navigates to the specified `url`. |
32
39
|[hover(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/hover/)| Hovers over an element matching `selector`. |
33
40
|[innerHTML(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/innerhtml/)| Returns the `element.innerHTML`. |
0 commit comments