Skip to content

feat(assert): isFocused, isEmpty, and regex overloads for text/value #136

Closed

Description

@shossain786

LocatorAssert covers visibility, enabled/disabled/checked, text, value, attribute, class and count. Missing: isFocused(), isEmpty(), and Pattern overloads for hasText / containsText / hasValue (check which already exist before adding). Each assertion must retry until true or the timeout, like the existing ones, and the failure message must name the locator and the actual value.

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. adity982 commented on Oct 12, 2026

    @adity982
    Contributor

    I’d like to implement this. I’ll add focused/empty assertions and regex overloads only where missing, preserve the existing retry/actual-value failure contract, and cover the public API with Javadoc, unit tests, the locators guide, and changelog.

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

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions