Class ImplicitWaitServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T executeWithDefaultImplicitWaitTime​(java.util.function.Supplier<T> supplier)
      Executes the given supplier with configured default implicit wait time.
      <T> T executeWithoutWaiting​(java.util.function.Supplier<T> supplier)
      Executes the given supplier without waiting implicitly.
      <T> T executeWithTimeout​(long timeoutInMillis, java.util.function.Supplier<T> supplier)
      Executes the given supplier with the given implicit wait time (in ms).
      void initialize()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImplicitWaitServiceImpl

        public ImplicitWaitServiceImpl()
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • executeWithoutWaiting

        public <T> T executeWithoutWaiting​(java.util.function.Supplier<T> supplier)
        Description copied from interface: ImplicitWaitService
        Executes the given supplier without waiting implicitly.
        Specified by:
        executeWithoutWaiting in interface ImplicitWaitService
        Type Parameters:
        T - The return type of the given supplier
        Parameters:
        supplier - The code to be executed
        Returns:
        the result of the given lambda
      • executeWithDefaultImplicitWaitTime

        public <T> T executeWithDefaultImplicitWaitTime​(java.util.function.Supplier<T> supplier)
        Description copied from interface: ImplicitWaitService
        Executes the given supplier with configured default implicit wait time.
        Specified by:
        executeWithDefaultImplicitWaitTime in interface ImplicitWaitService
        Type Parameters:
        T - The return type of the given supplier
        Parameters:
        supplier - The code to be executed
        Returns:
        the result of the given lambda
      • executeWithTimeout

        public <T> T executeWithTimeout​(long timeoutInMillis,
                                        java.util.function.Supplier<T> supplier)
        Description copied from interface: ImplicitWaitService
        Executes the given supplier with the given implicit wait time (in ms).
        Specified by:
        executeWithTimeout in interface ImplicitWaitService
        Type Parameters:
        T - The return type of the given supplier
        Parameters:
        timeoutInMillis - the implicit wait time (in ms)
        supplier - The code to be executed
        Returns:
        the result of the given lambda