You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(assert): isFocused, isEmpty, and regex overloads for text/value #136
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.
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.
Activity
adity982 commentedon Oct 12, 2026
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.
feat: add focused empty and regex assertions (seleniumboot#136)
feat: add focused empty and regex assertions (#136) (#169)