Skip to content

feat(locator): first() and last() #132

Closed

Description

@shossain786

Locator has nth(int) but no first() / last(). They are the most common narrowing calls (getByRole(Role.LISTITEM).first()). Add both as thin, readable wrappers (last() must resolve at action time, not at build time).

Acceptance: tests pass (unit tests under src/test, plus a case against a real page in the sample project if it needs a browser); Javadoc on each public method; a changelog entry in docs-site/docs/changelog.md; one line in the locators guide. Terminal actions must follow the existing contract: resolve from scratch on every poll and retry stale/not-yet-present elements until timeouts.explicit (see #67/#68). See CONTRIBUTING.md; comment to claim it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions