Skip to content

Commit 8c9ef0a

Browse files
author
aquality-automation
authored
Remove popularclassnames enum #30 (#36)
* refactored state of elements * re-check waitForNotExists methods for correct work. split 1 test to 2, added verification of wait time * removed IElementWithState interface changed IElementStateProvider interface: added methods for waitings with default condition timeouts excluded ability to call state methods directly from elements, now users have to use state() method * refactored conditional wait refactored elements' states added isClickable * removed popularclassnames enum #30
1 parent bcbfe19 commit 8c9ef0a

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/main/java/aquality/selenium/elements/ElementStateProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public boolean waitForEnabled(long timeout) {
119119
findElements(timeout).
120120
stream().anyMatch(element ->
121121
element.isEnabled() &&
122-
!element.getAttribute(Attributes.CLASS.toString()).contains(PopularClassNames.DISABLED)
122+
!element.getAttribute(Attributes.CLASS.toString()).contains("disabled")
123123
), getDesiredStateMessage("ENABLED", timeout)).withCatchingTimeoutException().withThrowingNoSuchElementException();
124124
return isElementInDesiredCondition(timeout, desiredState);
125125
}

src/main/java/aquality/selenium/elements/PopularClassNames.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)