Skip to content

feat(locator): press, focus, doubleClick, rightClick #134

Open

Description

@shossain786

BasePage has doubleClick / rightClick and Locator has hover, but Locator has no doubleClick(), rightClick(), focus() or press(Keys...) (e.g. getByLabel("Search").press(Keys.ENTER)). Add them so the Locator API is the one place to look.

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.

Activity

  1. TONGdamy commented on Oct 13, 2026

    @TONGdamy

    Hi, I’d be happy to contribute to this issue if it is still available. I plan to add the four Locator methods, following the existing auto-waiting and stale-element retry behaviour, together with tests, Javadoc, and the required documentation updates.

    Would it be possible to assign this issue to me? Thank you for your time and consideration!

  2. shossain786 commented on Oct 14, 2026

    @shossain786
    ContributorAuthor

    Hi @TONGdamy, welcome, and thanks for offering. It's yours; I've assigned it to you.

    A few pointers so the first review goes smoothly:

  3. TONGdamy commented on Oct 14, 2026

    @TONGdamy

    Hi @shossain786, thank you for assigning this issue to me and for the helpful guidance!

    Would it be alright for my teammate @crystalmountain666 and me to work on this together? If so, could you please add them as a second assignee alongside me?

    We plan to submit one joint PR covering the implementation, tests, and documentation. Thank you for your time!

  4. shossain786 commented on Oct 14, 2026

    @shossain786
    ContributorAuthor

    Yes, working together on one joint PR is fine, @TONGdamy. GitHub only lets me assign people who have already taken part in the repo, so I couldn't add @crystalmountain666 as a second assignee. If they comment here once, I'll add them. In the meantime, add them to the commits with a Co-authored-by: trailer so they get credit in the history. One PR, one set of tests, docs and changelog, as you planned.

  5. crystalmountain666 commented on Oct 14, 2026

    @crystalmountain666

    Hi! Thanks for explaining! I'm a teammate of @TONGdamy. I left a comment here so you can add me as a second assignee. We'll work together on the same PR as planned. Thank you for your help!!

  6. shossain786 commented on Oct 14, 2026

    @shossain786
    ContributorAuthor

    Thanks @crystalmountain666, you're added as a second assignee. Over to you both. Open a draft PR early if you'd like a design check.

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions