Package com.codeborne.selenide.ex
Class SelenideErrorFormatter
java.lang.Object
com.codeborne.selenide.ex.SelenideErrorFormatter
- All Implemented Interfaces:
ErrorFormatter
- Direct Known Subclasses:
ErrorFormatterWithPageUrl
@ParametersAreNonnullByDefault
public class SelenideErrorFormatter
extends Object
implements ErrorFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactualValue
(Condition condition, Driver driver, org.openqa.selenium.WebElement element, CheckResult lastCheckResult) protected <T> String
actualValue
(ObjectCondition<T> condition, T object) protected String
protected String
extractActualValue
(Condition condition, Driver driver, org.openqa.selenium.WebElement element) generateErrorDetails
(AssertionError error, Driver driver, Screenshot screenshot, long timeoutMs) protected String
timeout
(long timeoutMs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codeborne.selenide.ex.ErrorFormatter
extractActualValue, formatActualValue
-
Constructor Details
-
SelenideErrorFormatter
public SelenideErrorFormatter()
-
-
Method Details
-
generateErrorDetails
@CheckReturnValue @Nonnull public String generateErrorDetails(AssertionError error, Driver driver, Screenshot screenshot, long timeoutMs) - Specified by:
generateErrorDetails
in interfaceErrorFormatter
-
timeout
-
actualValue
@CheckReturnValue @Nonnull public String actualValue(Condition condition, Driver driver, @Nullable org.openqa.selenium.WebElement element, @Nullable CheckResult lastCheckResult) - Specified by:
actualValue
in interfaceErrorFormatter
-
extractActualValue
-
actualValue
@CheckReturnValue @Nonnull protected <T> String actualValue(ObjectCondition<T> condition, @Nullable T object) -
causedBy
-