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

Improve: Browser locator warnings #1710

Open
inancgumus opened this issue Aug 29, 2024 · 0 comments
Open

Improve: Browser locator warnings #1710

inancgumus opened this issue Aug 29, 2024 · 0 comments
Labels
Area: browser The browser module

Comments

@inancgumus
Copy link
Member

We display a warning when users want to use non-locator methods. For example:

{{< admonition type="warning" >}}

Use [`locator.setChecked(checked [, options])`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/locator/setchecked/) instead.

{{< /admonition >}}

@heitortsergent suggests:

It would be nice to provide a reason why the user should be using the locator.setChecked instead.

So, the idea is to improve these warnings with a valid reason. The solution could be redirecting users to an article like this one.

@inancgumus inancgumus added the Area: browser The browser module label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: browser The browser module
Projects
None yet
Development

No branches or pull requests

1 participant