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

com.epam.jdi.bdd.stepdefs.ProgressBarSteps Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
package com.epam.jdi.bdd.stepdefs;

import com.epam.jdi.light.ui.html.elements.common.ProgressBar;
import cucumber.api.java.en.Then;

import static com.epam.jdi.light.elements.init.entities.collection.EntitiesCollection.getUI;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.lessThanOrEqualTo;

/**
 * Created by Roman Iovlev on 26.09.2019
 * Email: [email protected]; Skype: roman.iovlev
 */
public class ProgressBarSteps {
    public static ProgressBar progressBar(String name) {
        return getUI(name, ProgressBar.class);
    }

    @Then("^the \"([^\"]*)\" progress value greater or equal to (\\d+)$")
    public void valueGreaterOrEqualTo(String name, int value) {
        progressBar(name).is().value(greaterThanOrEqualTo(value));
    }

    @Then("^the \"([^\"]*)\" progress value less or equal to (\\d+)$")
    public void valueLessOrEqualTo(String name, int value) {
        progressBar(name).is().value(lessThanOrEqualTo(value));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy