T - this object type to chain method callspublic class FluentJavascriptActionsImpl<T> extends java.lang.Object implements FluentJavascriptActions<T>
Underlying webDriver must support javascript to support those actions.
| Constructor and Description |
|---|
FluentJavascriptActionsImpl(T self,
JavascriptControl javascript,
java.util.function.Supplier<FluentWebElement> element)
Creates a new fluent javascript actions.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public FluentJavascriptActionsImpl(T self, JavascriptControl javascript, java.util.function.Supplier<FluentWebElement> element)
self - object that will be returned by methodsjavascript - javascript controlelement - Supplier of element on which execute the actionpublic T scrollIntoView()
FluentJavascriptActionsscrollIntoView in interface FluentJavascriptActions<T>public T scrollIntoView(boolean alignWithTop)
FluentJavascriptActionsscrollIntoView in interface FluentJavascriptActions<T>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.public T scrollToCenter()
FluentJavascriptActionsscrollToCenter in interface FluentJavascriptActions<T>Copyright © 2018 FluentLenium. All Rights Reserved.