Skip to content

Commit

Permalink
Add setChecked to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Sep 13, 2024
1 parent 8da0ce8 commit befe03c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions release notes/v0.54.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ const huge = BigInt(9007199254740991);

Note: that prior k6 version v0.54, Golang's type `math/big.Int` mapped to another type, so it might be a breaking change for some extensions or users.

### New `setChecked` method for the browser module [`#3914`](https://github.com/grafana/xk6-browser/pull/1403)

Previously, users could check or uncheck checkbox and radio button elements using the [`check`](https://grafana.com/docs/k6/latest/javascript-api/k6-browser/page/check/) and [`uncheck`](https://grafana.com/docs/k6/latest/javascript-api/k6-browser/page/uncheck/) methods. Now, we've added a `setChecked` method that allows users to set either the checked or unchecked state of a checkbox or radio button with a single method and a boolean argument.

```javascript
await page.setChecked('#checkbox', true); // check the checkbox
await page.setChecked('#checkbox', false); // uncheck the checkbox
```

[Page](https://grafana.com/docs/k6/next/javascript-api/k6-browser/page/setchecked/), [Frame](https://grafana.com/docs/k6/next/javascript-api/k6-browser/frame/), [ElementHandle](https://grafana.com/docs/k6/next/javascript-api/k6-browser/elementhandle/), and [Locator](https://grafana.com/docs/k6/next/javascript-api/k6-browser/locator/) now support the new `setChecked` method.

## UX improvements and enhancements

- [#3898](https://github.com/grafana/k6/pull/3898) adds `SetupTimeout` option validation. Thank you, @tsukasaI!
Expand Down

0 comments on commit befe03c

Please sign in to comment.