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/locator/_index.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: "Locator"
3
3
description: "Browser module: Locator Class"
4
4
weight: 08
5
-
weight: 08
6
5
---
7
6
8
7
# Locator
@@ -41,7 +40,7 @@ Locator can be created with the [page.locator(selector[, options])](https://graf
41
40
|[isHidden()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/ishidden)| Checks if the element is `hidden`. |
42
41
|[isVisible()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/isvisible)| Checks if the element is `visible`. |
43
42
|[last()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/last)| Returns a `locator` to the last matching element. |
44
-
|[locator(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/locator)| Creates a nested locator relative to the current locator, allowing for more precise element targeting by chaining selectors. |
43
+
|[locator(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/locator)| Returns a new chained `locator`for the given `selector`.|
45
44
|[nth()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/nth)| Returns a `locator` to the n-th matching element. |
46
45
|[press(key, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/press)| Press a single key on the keyboard or a combination of keys. |
47
46
|[selectOption(values, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/selectoption) {{< docs/bwipt id="470" >}} | Select one or more options which match the values. |
0 commit comments