Skip to content

Commit

Permalink
chore: remove broken link to setChecked page (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortsergent authored Jul 22, 2024
1 parent befc5e7 commit 5136b3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ weight: 04
| [scrollIntoViewIfNeeded([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/scrollintoviewifneeded) | Scrolls the element into view if needed. |
| [selectOption(values[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/selectoption) | Selects the `select` element's one or more options which match the values. |
| [selectText([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/selecttext) | Selects the text of the element. |
| [setChecked(checked[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/setchecked) | Sets the `checkbox` or `radio` input element's value to the specified checked or unchecked state. |
| setChecked(checked[, options]) | Sets the `checkbox` or `radio` input element's value to the specified checked or unchecked state. |
| [setInputFiles(file[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/setinputfiles) | Sets the file input element's value to the specified files. |
| [tap(options)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/tap) | Taps the element. |
| [textContent()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/textcontent) | Returns the text content of the element. |
Expand All @@ -49,8 +49,6 @@ weight: 04

## Examples

{{< code >}}

```javascript
import { check } from 'k6';
import { browser } from 'k6/browser';
Expand Down Expand Up @@ -84,7 +82,7 @@ export default async function () {
const submitButton = await page.$('input[type="submit"]');

await Promise.all([page.waitForNavigation(), submitButton.click()]);
const text = await p.$('h2');
const text = await page.$('h2');
const content = await text.textContent();
check(page, {
header: () => text == 'Welcome, admin!',
Expand All @@ -95,9 +93,7 @@ export default async function () {
}
```

{{< /code >}}

{{< code >}}
<!-- eslint-skip -->

```javascript
import { browser } from 'k6/browser';
Expand Down Expand Up @@ -167,5 +163,3 @@ export default function () {
}
}
```

{{< /code >}}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ weight: 04
| [scrollIntoViewIfNeeded([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/scrollintoviewifneeded) | Scrolls the element into view if needed. |
| [selectOption(values[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/selectoption) | Selects the `select` element's one or more options which match the values. |
| [selectText([options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/selecttext) | Selects the text of the element. |
| [setChecked(checked[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/setchecked) | Sets the `checkbox` or `radio` input element's value to the specified checked or unchecked state. |
| setChecked(checked[, options]) | Sets the `checkbox` or `radio` input element's value to the specified checked or unchecked state. |
| [setInputFiles(file[, options])](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/setinputfiles) | Sets the file input element's value to the specified files. |
| [tap(options)](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/tap) | Taps the element. |
| [textContent()](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/elementhandle/textcontent) | Returns the text content of the element. |
Expand All @@ -49,8 +49,6 @@ weight: 04

## Examples

{{< code >}}

```javascript
import { check } from 'k6';
import { browser } from 'k6/browser';
Expand Down Expand Up @@ -84,7 +82,7 @@ export default async function () {
const submitButton = await page.$('input[type="submit"]');

await Promise.all([page.waitForNavigation(), submitButton.click()]);
const text = await p.$('h2');
const text = await page.$('h2');
const content = await text.textContent();
check(page, {
header: () => text == 'Welcome, admin!',
Expand All @@ -95,13 +93,11 @@ export default async function () {
}
```

{{< /code >}}

{{< code >}}
<!-- eslint-skip -->

```javascript
import { browser } from 'k6/browser';
import { check } from 'k6';
import { browser } from 'k6/browser';

export const options = {
scenarios: {
Expand Down Expand Up @@ -167,5 +163,3 @@ export default function () {
}
}
```

{{< /code >}}

0 comments on commit 5136b3d

Please sign in to comment.