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
public class UIAssertionError
extends org.opentest4j.AssertionFailedError
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUIAssertionError(String message) protectedUIAssertionError(String message, long timeoutMs, @Nullable Throwable cause) UIAssertionError(String message, @Nullable Object expected, @Nullable Object actual) protectedUIAssertionError(String message, @Nullable Object expected, @Nullable Object actual, long timeoutMs) protectedUIAssertionError(String message, @Nullable Object expected, @Nullable Object actual, @Nullable Throwable cause) protectedUIAssertionError(String message, @Nullable Object expected, @Nullable Object actual, @Nullable Throwable cause, long timeoutMs) protectedUIAssertionError(String message, @Nullable 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
-