All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.magentys.cinnamon.webdriver.conditions.CollectionConditions Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy