Skip to content

Commit c2f7b89

Browse files
committed
Add locator method to locator methods table
1 parent 2b175d7 commit c2f7b89

File tree

1 file changed

+1
-2
lines changed
  • docs/sources/k6/next/javascript-api/k6-browser/locator

1 file changed

+1
-2
lines changed

docs/sources/k6/next/javascript-api/k6-browser/locator/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "Locator"
33
description: "Browser module: Locator Class"
44
weight: 08
5-
weight: 08
65
---
76

87
# Locator
@@ -41,7 +40,7 @@ Locator can be created with the [page.locator(selector[, options])](https://graf
4140
| [isHidden()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/ishidden) | Checks if the element is `hidden`. |
4241
| [isVisible()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/isvisible) | Checks if the element is `visible`. |
4342
| [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`. |
4544
| [nth()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/nth) | Returns a `locator` to the n-th matching element. |
4645
| [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. |
4746
| [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

Comments
 (0)