Skip to content

Commit 3c6511f

Browse files
committed
Update page methods table to show locator options support
1 parent 66fa8e3 commit 3c6511f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Page provides methods to interact with a single tab in a running web browser. A
4848
| [isHidden(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/ishidden/) | Checks if the element is `hidden`. |
4949
| [isVisible(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/isvisible/) | Checks if the element is `visible`. |
5050
| [keyboard](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/keyboard) | Returns the [Keyboard](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/keyboard) instance to interact with a virtual keyboard on the page. |
51-
| [locator(selector)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/locator) | Returns a [Locator](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator) for the given `selector`. |
51+
| [locator(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/locator) | Returns a [Locator](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator) for the given `selector`. |
5252
| [mainFrame()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/mainframe) | Returns the page's main [Frame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/frame). |
5353
| [mouse](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/mouse) | Returns the [Mouse](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/mouse) instance to interact with a virtual mouse on the page. |
5454
| [on(event, handler)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page/on) | Registers a handler to be called whenever the specified event occurs. |

0 commit comments

Comments
 (0)