Skip to content

Conversation

@ankur22
Copy link
Contributor

@ankur22 ankur22 commented Sep 8, 2025

What?

Errors are returned early when a required field in page.locator and locator.locator is missing.

Why?

We end up with an error pointing to the line in the test script instead of a scary stack trace with internal Go details.

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link

Related PR(s)/Issue(s)

@ankur22 ankur22 added this to the v1.3.0 milestone Sep 8, 2025
@AgnesToulet AgnesToulet modified the milestones: v1.3.0, v1.4.0 Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants