Skip to content

Commit 195eba0

Browse files
committed
Add the count API to the index table
1 parent ad9e3c3 commit 195eba0

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Locator can be created with the [page.locator(selector[, options])](https://graf
2121
| [check([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/check) {{< docs/bwipt id="471" >}} | Select the input checkbox. |
2222
| [clear([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/clear) | Clears text boxes and input fields of any existing values. |
2323
| [click([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/click) {{< docs/bwipt id="471" >}} | Mouse click on the chosen element. |
24+
| [count()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/count) | Returns the number of elements matching the selector. |
2425
| [dblclick([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/dblclick) {{< docs/bwipt id="471" >}} | Mouse double click on the chosen element. |
2526
| [dispatchEvent(type, eventInit, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/dispatchevent) | Dispatches HTML DOM event types e.g. `'click'`. |
2627
| [fill(value, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/fill) | Fill an `input`, `textarea` or `contenteditable` element with the provided value. |

0 commit comments

Comments
 (0)