Interface FluentJavascriptActions<T>

  • Type Parameters:
    T - this object type to chain method calls
    All Known Subinterfaces:
    FluentActions<T,​E>, FluentList<E>
    All Known Implementing Classes:
    FluentJavascriptActionsImpl, FluentListImpl, FluentWebElement

    public interface FluentJavascriptActions<T>
    Javascript actions that can be used on the list or on a web element.

    Underlying webDriver must support javascript to support those actions.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T modifyAttribute​(String attributeName, String attributeValue)
      Modifies element attributes
      T scrollIntoView()
      Scrolls the current element into the visible area of the browser window.
      T scrollIntoView​(boolean alignWithTop)
      Scrolls the current element into the visible area of the browser window.
      T scrollToCenter()
      Scrolls center of the current element into the visible area of the browser window, respecting window size.
    • Method Detail

      • scrollIntoView

        T scrollIntoView()
        Scrolls the current element into the visible area of the browser window.
        Returns:
        this object reference to chain methods calls
        See Also:
        element.scrollIntoView
      • scrollIntoView

        T scrollIntoView​(boolean alignWithTop)
        Scrolls the current element into the visible area of the browser window.
        Parameters:
        alignWithTop - If true, the top of the element will be aligned to the top of the visible area of the scrollable ancestor. If false, the bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor.
        Returns:
        this object reference to chain methods calls
        See Also:
        element.scrollIntoView
      • scrollToCenter

        T scrollToCenter()
        Scrolls center of the current element into the visible area of the browser window, respecting window size.
        Returns:
        this object reference to chain methods calls
      • modifyAttribute

        T modifyAttribute​(String attributeName,
                          String attributeValue)
        Modifies element attributes
        Parameters:
        attributeName - attribute to be change
        attributeValue - new attribute value
        Returns:
        this object reference to chain methods calls