Interface FluentWaitConditions<T>

    • Method Detail

      • until

        FluentConditions until​(FluentWebElement element)
        Get a conditions object used to wait for condition on given element.
        Parameters:
        element - element to wait for
        Returns:
        conditions object
      • until

        FluentListConditions until​(java.util.List<? extends FluentWebElement> elements)
        Get a conditions object used to wait for a condition on given elements.

        At least one element must verify the condition to be verified.

        Parameters:
        elements - elements to wait for
        Returns:
        conditions object
      • untilEach

        FluentListConditions untilEach​(java.util.List<? extends FluentWebElement> elements)
        Get a conditions object used to wait for a condition on given elements.

        Each element must verify the condition to be verified.

        Parameters:
        elements - elements to wait for
        Returns:
        conditions object
      • untilElement

        FluentConditions untilElement​(java.util.function.Supplier<? extends FluentWebElement> element)
        Get a conditions object used to wait for a condition on given element.
        Parameters:
        element - element to wait for
        Returns:
        conditions object
      • untilElements

        FluentListConditions untilElements​(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)
        Get a conditions object used to wait for a condition on given elements.

        At least one element must verify the condition to be verified.

        Parameters:
        elements - elements to wait for
        Returns:
        conditions object
      • untilEachElements

        FluentListConditions untilEachElements​(java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elements)
        Get a conditions object used to wait for a condition on given elements.

        Each element must verify the condition to be verified.

        Parameters:
        elements - elements to wait for
        Returns:
        conditions object
      • untilWindow

        FluentWaitWindowConditions untilWindow​(java.lang.String windowName)
        Get a condition object used to wait for a window condition.
        Parameters:
        windowName - name of the window to wait for
        Returns:
        window conditions object
      • untilPage

        FluentWaitPageConditions untilPage()
        Get a condition object used to wait for a page condition.
        Returns:
        page conditions object
      • untilPage

        FluentWaitPageConditions untilPage​(FluentPage page)
        Get a condition object used to wait for a page condition.
        Parameters:
        page - page to wait for
        Returns:
        page conditions object
      • explicitlyFor

        T explicitlyFor​(long amount,
                        java.util.concurrent.TimeUnit timeUnit)
        Waits unconditionally for an explicit amount of time.

        The method should be used only as a last resort.

        In most cases you should wait for some condition, e.g. visibility of particular element on the page.

        Parameters:
        amount - amount of time
        timeUnit - unit of time
        Returns:
        this object to chain method calls
      • explicitlyFor

        default T explicitlyFor​(long amount)
        Waits unconditionally for an explicit amount of time.

        The method should be used only as a last resort.

        In most cases you should wait for some condition, e.g. visibility of particular element on the page.

        Parameters:
        amount - amount of time to wait in milliseconds
        Returns:
        this object to chain method calls