Package org.kquiet.browser
Class ActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder
java.lang.Object
org.kquiet.browser.ActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder
- Enclosing class:
- ActionComposerBuilder.ActionSequenceBuilder
A builder to build
Extract
in a fluent way.-
Constructor Summary
ConstructorsConstructorDescriptionExtractBuilder
(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by) Create a newActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder. -
Method Summary
Modifier and TypeMethodDescriptiondone()
Finish buildingExtract
and add it to parent builder.withAttributeAsVariable
(Map<String, String> attrVariableNames) Set the value of properties/attributes of the element as variables of buildingActionComposer
.withInFrame
(List<org.openqa.selenium.By> frameBySequence) Set the frame locating mechanism for the element resides in a frame.withTextAsVariable
(String textVariableName) Set the text of the element as a variable of buildingActionComposer
.
-
Constructor Details
-
ExtractBuilder
public ExtractBuilder(ActionComposerBuilder.ActionSequenceBuilder parentActionSequenceBuilder, org.openqa.selenium.By by) Create a newActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder
with specifiedActionComposerBuilder.ActionSequenceBuilder
as parent builder.- Parameters:
parentActionSequenceBuilder
- parent builder(ActionComposerBuilder.ActionSequenceBuilder
)by
- the element locating mechanism
-
-
Method Details
-
withInFrame
public ActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder 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
-
withTextAsVariable
public ActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder withTextAsVariable(String textVariableName) Set the text of the element as a variable of buildingActionComposer
.- Parameters:
textVariableName
- text variable name- Returns:
- self reference
-
withAttributeAsVariable
public ActionComposerBuilder.ActionSequenceBuilder.ExtractBuilder withAttributeAsVariable(Map<String, String> attrVariableNames) Set the value of properties/attributes of the element as variables of buildingActionComposer
.- Parameters:
attrVariableNames
- (attribute name, variable name) pairs to set as variables- Returns:
- self reference
- See Also:
-
done
Finish buildingExtract
and add it to parent builder.- Returns:
- parent builder(
ActionComposerBuilder.ActionSequenceBuilder
)
-