io.magentys.cinnamon.webdriver.conditions.CollectionConditions Maven / Gradle / Ivy
package io.magentys.cinnamon.webdriver.conditions;
import io.magentys.cinnamon.webdriver.collections.SizeGreaterThanCondition;
import io.magentys.cinnamon.webdriver.collections.TextsContainCondition;
import org.openqa.selenium.WebElement;
import java.util.List;
public final class CollectionConditions {
// Suppresses default constructor, ensuring non-instantiability.
private CollectionConditions() {
}
public static Condition> sizeGreaterThan(final int size) {
return new SizeGreaterThanCondition(size);
}
public static Condition> textsContain(final String... texts) {
return new TextsContainCondition(texts);
}
public static Condition> textsContainIgnoreCase(final String... texts) {
return new TextsContainCondition(true, texts);
}
}