Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove broken link to setChecked page #1664

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 >}}
Loading