Package com.codeborne.selenide.ex
Class UIAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.opentest4j.AssertionFailedError
com.codeborne.selenide.ex.UIAssertionError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlertNotFoundError,AttributesMismatch,ConditionMetError,ConditionNotMetError,DialogTextMismatch,DoesNotContainTextsError,ElementIsNotClickableError,ElementNotFound,ElementShould,ElementShouldNot,ElementWithTextNotFound,FileNotDownloadedError,FrameNotFoundError,InvalidStateError,ListSizeMismatch,MatcherError,TextsMismatch,WindowNotFoundError
@ParametersAreNonnullByDefault
public class UIAssertionError
extends org.opentest4j.AssertionFailedError
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUIAssertionError(Driver driver, String message) protectedUIAssertionError(Driver driver, String message, long timeoutMs, Throwable cause) protectedUIAssertionError(Driver driver, String message, Object expected, Object actual) protectedUIAssertionError(Driver driver, String message, Object expected, Object actual, long timeoutMs) protectedprotectedUIAssertionError(Driver driver, String message, Object expected, Object actual, Throwable cause, long timeoutMs) protectedUIAssertionError(Driver driver, String message, Throwable cause) -
Method Summary
Methods inherited from class org.opentest4j.AssertionFailedError
getActual, getExpected, isActualDefined, isExpectedDefinedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
errorFormatter
-
-
Constructor Details
-
UIAssertionError
-
UIAssertionError
-
UIAssertionError
-
UIAssertionError
-
UIAssertionError
-
UIAssertionError
-
UIAssertionError
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
toString
- Overrides:
toStringin classorg.opentest4j.AssertionFailedError
-
getScreenshot
Get path to screenshot taken after failed test- Returns:
- empty string if screenshots are disabled
-
wrap
-
wrap
-