k6-docs icon indicating copy to clipboard operation
k6-docs copied to clipboard

Create page for k6/browser ElementHandle setChecked function

Open heitortsergent opened this issue 1 year ago • 2 comments

Related to https://github.com/grafana/k6-docs/pull/1664.

The docs are missing a page for the setChecked function for the ElementHandle object.

heitortsergent avatar Jul 22 '24 17:07 heitortsergent

@inancgumus @ankur22 we got some feedback that we had a 404 on the ElementHandle page and I think we're just missing a page for one of the functions here. I removed the link for now, would you be able to grab this issue? 🙇

heitortsergent avatar Jul 22 '24 17:07 heitortsergent

It turns out that we don't publish ElementHandle.setChecked to users (it's not available on the browser module's Javascript API). Instead, we have ElementHandle.check and ElementHandle.uncheck. The difference of setChecked is that it toggles input checkboxes.

Next steps:

  • Publish setChecked to users
  • Update the documentation

inancgumus avatar Jul 23 '24 10:07 inancgumus

@heitortsergent This can be closed once the reviewers approve #1696 🎉

We made all the necessary updates in grafana/xk6-browser#1340.

inancgumus avatar Aug 20 '24 16:08 inancgumus