com.sdl.selenium.conditions.FailCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Testy Show documentation
Show all versions of Testy Show documentation
Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications.
(optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)
The newest version!
package com.sdl.selenium.conditions;
import com.sdl.selenium.web.WebLocator;
public abstract class FailCondition extends Condition {
public FailCondition() {
}
public FailCondition(String message) {
super(message);
}
public FailCondition(String message, String className) {
super(message, className);
}
@Override
public boolean isSuccess() {
return false;
}
public static FailCondition fail() {
return new FailCondition() {
@Override
public boolean execute() {
return true;
}
};
}
public static FailCondition fail(String message) {
return new FailCondition(message) {
@Override
public boolean execute() {
return true;
}
};
}
/**
* Return new FailCondition with message: Could not click on {WebLocator}
*
* @param element element
* @return FailCondition
*/
public static FailCondition clickFail(WebLocator element) {
return fail("Could not click on " + element);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy