Skip to content

Commit

Permalink
Fix more broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortsergent committed Nov 10, 2023
1 parent c18ccb0 commit 34f2d54
Show file tree
Hide file tree
Showing 131 changed files with 291 additions and 284 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ PS C:\k6> k6 run script.js
| k6 Class | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BrowserContext](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/browsercontext) <BWIPT /> | Enables independent browser sessions with separate [Page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page)s, cache, and cookies. |
| [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/element-handle) <BWIPT /> | Represents an in-page DOM element. |
| [ElementHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/elementhandle) <BWIPT /> | Represents an in-page DOM element. |
| [Frame](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/frame) <BWIPT /> | Access and interact with the [`Page`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page).'s `Frame`s. |
| [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/js-handle) | Represents an in-page JavaScript object. |
| [JSHandle](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/jshandle) | Represents an in-page JavaScript object. |
| [Keyboard](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/keyboard) | Used to simulate the keyboard interactions with the associated [`Page`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page). |
| [Locator](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator) | The Locator API makes it easier to work with dynamically changing elements. |
| [Mouse](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/mouse) | Used to simulate the mouse interactions with the associated [`Page`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page). |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 'ConsoleMessage'
excerpt: 'Browser module: ConsoleMessage Class'
slug: 'consolemessage'
description: 'Browser module: ConsoleMessage Class'
weight: 03
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: 'ElementHandle'
slug: 'elementhandle'
excerpt: 'Browser module: ElementHandle Class'
weight: 04
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 'JSHandle'
excerpt: 'Browser module: JSHandle Class'
slug: 'jshandle'
description: 'Browser module: JSHandle Class'
weight: 06
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,34 @@ The Locator API makes it easier to work with dynamically changing elements. Some
- Enables the use of test abstractions like the Page Object Model (POM) pattern to simplify and organize tests.
- `strict` mode is enabled for all `locator` methods, which means that if more than one element matches the given selector it will throw an error.

Locator can be created with the [page.locator(selector[, options])](/javascript-api/k6-experimental/browser/page/#page-locator) method.
Locator can be created with the [page.locator(selector[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page/locator) method.

| Method | Description |
| ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [locator.check([options])](/javascript-api/k6-experimental/browser/locator/check) <BWIPT id="471"/> | Select the input checkbox. |
| [locator.click([options])](/javascript-api/k6-experimental/browser/locator/click) <BWIPT id="471"/> | Mouse click on the chosen element. |
| [locator.dblclick([options])](/javascript-api/k6-experimental/browser/locator/dblclick) <BWIPT id="469"/> | Mouse double click on the chosen element. |
| [locator.dispatchEvent(type, eventInit, [options])](/javascript-api/k6-experimental/browser/locator/dispatchevent) | Dispatches HTML DOM event types e.g. `'click'`. |
| [locator.fill(value, [options])](/javascript-api/k6-experimental/browser/locator/fill) | Fill an `input`, `textarea` or `contenteditable` element with the provided value. |
| [locator.focus([options])](/javascript-api/k6-experimental/browser/locator/focus) | Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on the element, if it can be focused. |
| [locator.getAttribute(name, [options])](/javascript-api/k6-experimental/browser/locator/getattribute) | Returns the element attribute value for the given attribute name. |
| [locator.hover([options])](/javascript-api/k6-experimental/browser/locator/hover) <BWIPT id="471"/> | Hovers over the element. |
| [locator.innerHTML([options])](/javascript-api/k6-experimental/browser/locator/innerhtml) | Returns the `element.innerHTML`. |
| [locator.innerText([options])](/javascript-api/k6-experimental/browser/locator/innertext) | Returns the `element.innerText`. |
| [locator.inputValue([options])](/javascript-api/k6-experimental/browser/locator/inputvalue) | Returns `input.value` for the selected `input`, `textarea` or `select` element. |
| [locator.isChecked([options])](/javascript-api/k6-experimental/browser/locator/ischecked) | Checks if the `checkbox` `input` type is selected. |
| [locator.isDisabled([options])](/javascript-api/k6-experimental/browser/locator/isdisabled) | Checks if the element is `disabled`. |
| [locator.isEditable([options])](/javascript-api/k6-experimental/browser/locator/iseditable) | Checks if the element is `editable`. |
| [locator.isEnabled([options])](/javascript-api/k6-experimental/browser/locator/isenabled) | Checks if the element is `enabled`. |
| [locator.isHidden([options])](/javascript-api/k6-experimental/browser/locator/ishidden) | Checks if the element is `hidden`. |
| [locator.isVisible([options])](/javascript-api/k6-experimental/browser/locator/isvisible) | Checks if the element is `visible`. |
| [locator.press(key, [options])](/javascript-api/k6-experimental/browser/locator/press) | Press a single key on the keyboard or a combination of keys. |
| [locator.selectOption(values, [options])](/javascript-api/k6-experimental/browser/locator/selectoption) <BWIPT id="470"/> | Select one or more options which match the values. |
| [locator.tap([options])](/javascript-api/k6-experimental/browser/locator/tap) <BWIPT id="471"/> | Tap on the chosen element. |
| [locator.textContent([options])](/javascript-api/k6-experimental/browser/locator/textcontent) | Returns the `element.textContent`. |
| [locator.type(text, [options])](/javascript-api/k6-experimental/browser/locator/type) | Type in the text into the input field. |
| [locator.uncheck([options])](/javascript-api/k6-experimental/browser/locator/uncheck) <BWIPT id="471"/> | Unselect the `input` checkbox. |
| [locator.waitFor([options])](/javascript-api/k6-experimental/browser/locator/waitfor) <BWIPT id="472"/> | Wait for the element to be in a particular state e.g. `visible`. |
| [locator.check([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/check) <BWIPT id="471"/> | Select the input checkbox. |
| [locator.click([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/click) <BWIPT id="471"/> | Mouse click on the chosen element. |
| [locator.dblclick([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/dblclick) <BWIPT id="469"/> | Mouse double click on the chosen element. |
| [locator.dispatchEvent(type, eventInit, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/dispatchevent) | Dispatches HTML DOM event types e.g. `'click'`. |
| [locator.fill(value, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/fill) | Fill an `input`, `textarea` or `contenteditable` element with the provided value. |
| [locator.focus([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/focus) | Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on the element, if it can be focused. |
| [locator.getAttribute(name, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/getattribute) | Returns the element attribute value for the given attribute name. |
| [locator.hover([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/hover) <BWIPT id="471"/> | Hovers over the element. |
| [locator.innerHTML([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/innerhtml) | Returns the `element.innerHTML`. |
| [locator.innerText([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/innertext) | Returns the `element.innerText`. |
| [locator.inputValue([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/inputvalue) | Returns `input.value` for the selected `input`, `textarea` or `select` element. |
| [locator.isChecked([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/ischecked) | Checks if the `checkbox` `input` type is selected. |
| [locator.isDisabled([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/isdisabled) | Checks if the element is `disabled`. |
| [locator.isEditable([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/iseditable) | Checks if the element is `editable`. |
| [locator.isEnabled([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/isenabled) | Checks if the element is `enabled`. |
| [locator.isHidden([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/ishidden) | Checks if the element is `hidden`. |
| [locator.isVisible([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/isvisible) | Checks if the element is `visible`. |
| [locator.press(key, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/press) | Press a single key on the keyboard or a combination of keys. |
| [locator.selectOption(values, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/selectoption) <BWIPT id="470"/> | Select one or more options which match the values. |
| [locator.tap([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/tap) <BWIPT id="471"/> | Tap on the chosen element. |
| [locator.textContent([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/textcontent) | Returns the `element.textContent`. |
| [locator.type(text, [options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/type) | Type in the text into the input field. |
| [locator.uncheck([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/uncheck) <BWIPT id="471"/> | Unselect the `input` checkbox. |
| [locator.waitFor([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/locator/waitfor) <BWIPT id="472"/> | Wait for the element to be in a particular state e.g. `visible`. |

### Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Use this method to select an `input` checkbox.
| options.position | object | `null` | A point to use relative to the top left corner of the element. If not supplied, a visible point of the element is used. |
| options.position.x | number | `0` | The x coordinate. |
| options.position.y | number | `0` | The y coordinate. |
| options.timeout | number | `30000` | Maximum time in milliseconds. Pass `0` to disable the timeout. Default is overridden by the `setDefaultTimeout` option on [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/) or [Page](/javascript-api/k6-experimental/browser/page/). |
| options.timeout | number | `30000` | Maximum time in milliseconds. Pass `0` to disable the timeout. Default is overridden by the `setDefaultTimeout` option on [BrowserContext](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/browsercontext/) or [Page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/browser/page/). |
| options.trial | boolean | `false` | Setting this to `true` will perform the actionability checks without performing the action. |

</TableWithNestedRows>
Expand Down
Loading

0 comments on commit 34f2d54

Please sign in to comment.