in gepard-selenium/src/main/java/com/epam/gepard/selenium/conditionwatcher/WebDriverConditionWatcher.java [68:86]
public void watchForConditions() {
Optional<Watchable<WebDriver>> conditionMet = evaluateConditions();
if (conditionMet.isPresent()) {
ConditionSeverity conditionSeverity = getSeverity(conditionMet.get());
LOGGER.info("Condition met: [{}], Severity: [{}]", conditionMet.get(), conditionSeverity);
switch (conditionSeverity) {
case INFO:
// Do nothing, warning message has been already logged
break;
case WARNING:
throw new ConditionWatcherWarningException(conditionMet.get().getMessage());
case ERROR:
throw new ConditionWatcherErrorException(conditionMet.get().getMessage());
default:
// do nothing
}
}
}