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

com.tidal.wave.verification.criteria.EnsureElementState Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tidal.wave.verification.criteria;

import com.tidal.wave.verification.conditions.Verification;
import org.openqa.selenium.By;

import java.util.List;
import java.util.function.Supplier;


public class EnsureElementState {

    //Class not to be instantiated.
    private EnsureElementState() {
    }

    public static void affirmation(boolean isVisible, boolean isMultiple, List locators, Supplier[] verifications) {
        for (Supplier verification : verifications) {
            verification.get().verify(isVisible, isMultiple, locators);
        }
    }

    public static void affirmation(boolean isVisible, boolean isMultiple, List locators, Criteria... verifications) {
        for (Verification verification : verifications) {
            verification.verify(isVisible, isMultiple, locators);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy