
website.automate.jwebrobot.expression.action.ConditionalActionExpressionEvaluator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebrobot Show documentation
Show all versions of jwebrobot Show documentation
Reference implementation of the web automation markup language (WAML).
The newest version!
package website.automate.jwebrobot.expression.action;
import website.automate.jwebrobot.context.ScenarioExecutionContext;
import website.automate.jwebrobot.expression.ExpressionEvaluator;
import website.automate.waml.io.model.main.action.ConditionalAction;
public abstract class ConditionalActionExpressionEvaluator extends ActionExpressionEvaluator {
public ConditionalActionExpressionEvaluator(ExpressionEvaluator expressionEvaluator) {
super(expressionEvaluator);
}
@Override
public void evaluate(T action, ScenarioExecutionContext context) {
action.setWhen(evaluateAsString(action.getWhen(), context));
action.setUnless(evaluateAsString(action.getUnless(), context));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy