Package org.kquiet.browser
Class ActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder
java.lang.Object
org.kquiet.browser.ActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder
- Enclosing class:
- ActionComposerBuilder.ActionSequenceBuilder
A builder to build
ReplyAlert
in a fluent way.-
Constructor Summary
ConstructorsConstructorDescriptionReplyAlertBuilder
(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, ReplyAlert.Decision decision) Create a newActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder. -
Method Summary
Modifier and TypeMethodDescriptiondone()
Finish buildingReplyAlert
and add it to parent builder.withKeysToSend
(String keysToSend) Send characters to alert box.withTextAsVariable
(String textVariableName) Set the text of alert box as a variable of buildingActionComposer
.
-
Constructor Details
-
ReplyAlertBuilder
public ReplyAlertBuilder(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, ReplyAlert.Decision decision) Create a newActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder.- Parameters:
parentActionSequenceBuilder
- parent builder(ActionComposerBuilder.ActionSequenceBuilder
)decision
- the way to deal with alert box
-
-
Method Details
-
withTextAsVariable
public ActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder withTextAsVariable(String textVariableName) Set the text of alert box as a variable of buildingActionComposer
.- Parameters:
textVariableName
- text variable name- Returns:
- self reference
-
withKeysToSend
public ActionComposerBuilder.ActionSequenceBuilder.ReplyAlertBuilder withKeysToSend(String keysToSend) Send characters to alert box.- Parameters:
keysToSend
- characters to send to alert box- Returns:
- self reference
-
done
Finish buildingReplyAlert
and add it to parent builder.- Returns:
- parent builder(
ActionComposerBuilder.ActionSequenceBuilder
)
-