com.epam.jdi.light.ui.html.asserts.ProgressAssert Maven / Gradle / Ivy
package com.epam.jdi.light.ui.html.asserts;
import com.epam.jdi.light.asserts.generic.UIAssert;
import com.epam.jdi.light.common.JDIAction;
import com.epam.jdi.light.ui.html.elements.common.ProgressBar;
import org.hamcrest.Matcher;
import org.hamcrest.Matchers;
import static com.epam.jdi.light.asserts.core.SoftAssert.jdiAssert;
/**
* Created by Roman Iovlev on 14.02.2018
* Email: [email protected]; Skype: roman.iovlev
*/
public class ProgressAssert extends UIAssert {
@JDIAction("Assert that '{name}' max value {0}")
public ProgressAssert max(Matcher max) {
jdiAssert(element().max(), max);
return this;
}
public ProgressAssert max(int maxVolume) { return max(Matchers.is(maxVolume)); }
@JDIAction("Assert that '{name}' value {0}")
public ProgressAssert value(Matcher value) {
jdiAssert(element().value(), value);
return this;
}
public ProgressAssert value(int value) { return value(Matchers.is(value)); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy