Class UIAssertionError

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long timeoutMs  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected UIAssertionError​(Driver driver, java.lang.String message)  
      protected UIAssertionError​(Driver driver, java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      Screenshot getScreenshot()
      Get path to screenshot taken after failed test
      java.lang.String toString()  
      protected java.lang.String uiDetails()  
      static java.lang.Error wrap​(Driver driver, java.lang.Error error, long timeoutMs)  
      static java.lang.Throwable wrap​(Driver driver, org.openqa.selenium.WebDriverException error, long timeoutMs)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • timeoutMs

        public long timeoutMs
    • Constructor Detail

      • UIAssertionError

        protected UIAssertionError​(Driver driver,
                                   java.lang.String message)
      • UIAssertionError

        protected UIAssertionError​(Driver driver,
                                   java.lang.String message,
                                   @Nullable
                                   java.lang.Throwable cause)
    • Method Detail

      • getMessage

        @CheckReturnValue
        public final java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • toString

        @CheckReturnValue
        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • uiDetails

        @CheckReturnValue
        protected java.lang.String uiDetails()
      • getScreenshot

        @CheckReturnValue
        public Screenshot getScreenshot()
        Get path to screenshot taken after failed test
        Returns:
        empty string if screenshots are disabled
      • wrap

        @CheckReturnValue
        public static java.lang.Error wrap​(Driver driver,
                                           java.lang.Error error,
                                           long timeoutMs)
      • wrap

        @CheckReturnValue
        public static java.lang.Throwable wrap​(Driver driver,
                                               org.openqa.selenium.WebDriverException error,
                                               long timeoutMs)