T - this object type to chain method callspublic class FluentJavascriptActionsImpl<T> extends Object implements FluentJavascriptActions<T>
Underlying webDriver must support javascript to support those actions.
| Constructor and Description |
|---|
FluentJavascriptActionsImpl(T self,
JavascriptControl javascript,
com.google.common.base.Supplier<FluentWebElement> element)
Creates a new fluent javascript actions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
scrollCentrallyTo(int y) |
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 |
scrollToElement()
Scrolls centrally the current element into the visible area of the browser window, respecting window size.
|
public FluentJavascriptActionsImpl(T self, JavascriptControl javascript, com.google.common.base.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 scrollToElement()
FluentJavascriptActionsscrollToElement in interface FluentJavascriptActions<T>public void scrollCentrallyTo(int y)
Copyright © 2016 FluentLenium. All Rights Reserved.