Package org.kquiet.browser
Class ActionComposerBuilder.ActionSequenceBuilder.SelectBuilder
java.lang.Object
org.kquiet.browser.ActionComposerBuilder.ActionSequenceBuilder.SelectBuilder
- Enclosing class:
- ActionComposerBuilder.ActionSequenceBuilder
A builder to build
Select
in a fluent way.-
Constructor Summary
ConstructorsConstructorDescriptionSelectBuilder
(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by) Create a newActionComposerBuilder.ActionSequenceBuilder.SelectBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder. -
Method Summary
Modifier and TypeMethodDescriptiondone()
Finish buildingSelect
and add it to parent builder.selectByIndex
(Integer... options) Select option by index.selectByText
(String... options) Select option By text.selectByValue
(String... options) Select option by value.withInFrame
(List<org.openqa.selenium.By> frameBySequence) Set the frame locating mechanism for the element resides in a frame.
-
Constructor Details
-
SelectBuilder
public SelectBuilder(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by) Create a newActionComposerBuilder.ActionSequenceBuilder.SelectBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder.- Parameters:
parentActionSequenceBuilder
- parent builder(ActionComposerBuilder.ActionSequenceBuilder
)by
- the element locating mechanism
-
-
Method Details
-
withInFrame
public ActionComposerBuilder.ActionSequenceBuilder.SelectBuilder 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
-
selectByIndex
Select option by index.- Parameters:
options
- the option to select; all options are deselected when no option is supplied and the SELECT element supports selecting multiple options- Returns:
- self reference
-
selectByText
Select option By text.- Parameters:
options
- the option to select; all options are deselected when no option is supplied and the SELECT element supports selecting multiple options- Returns:
- self reference
-
selectByValue
Select option by value.- Parameters:
options
- the option to select; all options are deselected when no option is supplied and the SELECT element supports selecting multiple options- Returns:
- self reference
-
done
Finish buildingSelect
and add it to parent builder.- Returns:
- parent builder(
ActionComposerBuilder.ActionSequenceBuilder
)
-