Package org.kquiet.browser
Class ActionComposerBuilder.ActionSequenceBuilder.ScrollToViewBuilder
java.lang.Object
org.kquiet.browser.ActionComposerBuilder.ActionSequenceBuilder.ScrollToViewBuilder
- Enclosing class:
- ActionComposerBuilder.ActionSequenceBuilder
A builder to build
ScrollToView
in a fluent way.-
Constructor Summary
ConstructorsConstructorDescriptionScrollToViewBuilder
(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by, boolean toTop) Create a newActionComposerBuilder.ActionSequenceBuilder.ScrollToViewBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder. -
Method Summary
Modifier and TypeMethodDescriptiondone()
Finish buildingScrollToView
and add it to parent builder.withInFrame
(List<org.openqa.selenium.By> frameBySequence) Set the frame locating mechanism for the element resides in a frame.
-
Constructor Details
-
ScrollToViewBuilder
public ScrollToViewBuilder(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by, boolean toTop) Create a newActionComposerBuilder.ActionSequenceBuilder.ScrollToViewBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder.- Parameters:
parentActionSequenceBuilder
- parent builder(ActionComposerBuilder.ActionSequenceBuilder
)by
- the element locating mechanismtoTop
-true
: scroll to top;false
: scroll to bottom
-
-
Method Details
-
withInFrame
public ActionComposerBuilder.ActionSequenceBuilder.ScrollToViewBuilder withInFrame(List<org.openqa.selenium.By> frameBySequence) Set the frame locating mechanism for the element resides in a frame.- Parameters:
frameBySequence
- the sequence of the frame locating mechanism- Returns:
- self reference
-
done
Finish buildingScrollToView
and add it to parent builder.- Returns:
- parent builder(
ActionComposerBuilder.ActionSequenceBuilder
)
-