Package io.fluentlenium.core.action
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
Modifier and TypeMethodDescriptionmodifyAttribute
(String attributeName, String attributeValue) Modifies element attributesScrolls the current element into the visible area of the browser window.scrollIntoView
(boolean alignWithTop) Scrolls the current element into the visible area of the browser window.Scrolls center of the current element into the visible area of the browser window, respecting window size.
-
Method Details
-
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:
-
scrollIntoView
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:
-
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
Modifies element attributes- Parameters:
attributeName
- attribute to be changeattributeValue
- new attribute value- Returns:
- this object reference to chain methods calls
-