Package com.codeborne.selenide.ex
Interface ErrorFormatter
- All Known Implementing Classes:
ErrorFormatterWithPageUrl
,SelenideErrorFormatter
public interface ErrorFormatter
-
Method Summary
Modifier and TypeMethodDescriptionactualValue
(Condition condition, Driver driver, org.openqa.selenium.WebElement element, CheckResult lastCheckResult) default <T> String
extractActualValue
(ObjectCondition<T> condition, T object) default <T> String
formatActualValue
(String actualValue) generateErrorDetails
(AssertionError error, Driver driver, Screenshot screenshot, long timeoutMs)
-
Method Details
-
generateErrorDetails
@CheckReturnValue @Nonnull String generateErrorDetails(AssertionError error, Driver driver, Screenshot screenshot, long timeoutMs) -
formatActualValue
-
actualValue
@CheckReturnValue @Nonnull String actualValue(Condition condition, Driver driver, @Nullable org.openqa.selenium.WebElement element, @Nullable CheckResult lastCheckResult) -
extractActualValue
@CheckReturnValue @Nullable default <T> String extractActualValue(ObjectCondition<T> condition, @Nonnull T object)
-