Skip to content

Commit 30938e9

Browse files
committed
Fix typo in ElementsCount enum
1 parent 2274f82 commit 30938e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/aquality/selenium/core/elements/ElementFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected void waitForElementsCount(By locator, ElementsCount count, ElementStat
106106
localizationManager.getLocalizedMessage("loc.elements.found.but.should.not",
107107
locator.toString(), state.toString()));
108108
break;
109-
case MORE_THEN_ZERO:
109+
case MORE_THAN_ZERO:
110110
conditionalWait.waitForTrue(() -> !elementFinder.findElements(locator, state, ZERO_TIMEOUT).isEmpty(),
111111
localizationManager.getLocalizedMessage("loc.no.elements.found.by.locator",
112112
locator.toString(), state.toString()));

src/main/java/aquality/selenium/core/elements/ElementsCount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
public enum ElementsCount {
44
ZERO,
5-
MORE_THEN_ZERO,
5+
MORE_THAN_ZERO,
66
ANY
77
}

src/test/java/tests/elements/factory/IFindElementsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ default void shouldBePossibleToFindCustomElementsViaCustomFactory() {
7777

7878
@Test
7979
default void shouldBePossibleToFindCustomElementsViaCustomFactoryWithCustomElementsCount() {
80-
Assert.assertTrue(findElements(CalculatorWindow.getEqualsButtonByXPath(), ICustomElement.class, ElementsCount.MORE_THEN_ZERO).size() > 1);
80+
Assert.assertTrue(findElements(CalculatorWindow.getEqualsButtonByXPath(), ICustomElement.class, ElementsCount.MORE_THAN_ZERO).size() > 1);
8181
}
8282

8383
@Test
8484
default void shouldBePossibleToFindCustomElementsViaSupplierWithDefaultName() {
8585
Assert.assertTrue(findElements(
86-
CalculatorWindow.getEqualsButtonByXPath(), CustomElement::new, ElementsCount.MORE_THEN_ZERO,
86+
CalculatorWindow.getEqualsButtonByXPath(), CustomElement::new, ElementsCount.MORE_THAN_ZERO,
8787
ElementState.EXISTS_IN_ANY_STATE).size() > 1);
8888
}
8989

0 commit comments

Comments
 (0)