@Component
public class DataExtractionStepDefinitions
extends java.lang.Object
| Constructor and Description |
|---|
DataExtractionStepDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
void |
saveAttributeContent(java.lang.String attribute,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text value of an element attribute against an alias
|
void |
saveHiddenTextContent(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text content of an element against an alias.
|
void |
saveSelectedTextContent(java.lang.String valueOrContent,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text content the first selected element in a drop down list
|
void |
saveSelectedTextContent(java.lang.String valueOrContent,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists) |
void |
saveSimpleAttributeContent(java.lang.String attribute,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text value of an element attribute against an alias
|
void |
saveSimpleHiddenTextContent(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text content of an element against an alias using simple selection.
|
void |
saveSimpleTextContent(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text content of an element against an alias
|
void |
saveSimpleValueAttribute(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text value of an element against an alias using simple selection.
|
void |
saveTextContent(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text content of an element against an alias
|
void |
saveValueAttribute(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
Saves the text value of an element against an alias.
|
@When(value="^I save the value of (?:a|an|the) element found by( alias)? \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSimpleValueAttribute(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
alias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the value of (?:a|an|the) element with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveValueAttribute(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
selector - Either ID, class, xpath, name or css selectoralias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the attribute content of \"([^\"]*)\" from (?:a|an|the) element found by( alias)? \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSimpleAttributeContent(java.lang.String attribute,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
attribute - The name of the attribute to selectalias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the attribute content of \"([^\"]*)\" from (?:a|an|the) element with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveAttributeContent(java.lang.String attribute,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
attribute - The name of the attribute to selectselector - Either ID, class, xpath, name or css selectoralias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the text content of (?:a|an|the) element found by( alias)? \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSimpleTextContent(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
alias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the text content of (?:a|an|the) element with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveTextContent(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
selector - Either ID, class, xpath, name or css selectoralias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the text content of (?:a|an|the) hidden element found by( alias)? \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSimpleHiddenTextContent(java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
alias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the text content of (?:a|an|the) hidden element with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveHiddenTextContent(java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
selector - Either ID, class, xpath, name or css selectoralias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.@When(value="^I save the ((?:content)|(?:value)) of the first selected option from (?:a|an|the) drop down list with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSelectedTextContent(java.lang.String valueOrContent,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
@When(value="^I save the ((?:content)|(?:value)) of the first selected option from (?:a|an|the) drop down list found by( alias)? \"([^\"]*)\" to the alias \"([^\"]*)\"( if it exists)?")
public void saveSelectedTextContent(java.lang.String valueOrContent,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String destinationAlias,
java.lang.String exists)
valueOrContent - Defines whether or not we are saving the text content or the value attribute
of the selected optionalias - If this word is found in the step, it means the selectorValue is found from the
data set.selectorValue - The value used in conjunction with the selector to match the element. If alias
was set, ' this value is found from the data set. Otherwise it is a literal
value.destinationAlias - The name of the alias to save the text content againstexists - If this text is set, an error that would be thrown because the element was not
found is ignored. Essentially setting this text makes this an optional
statement.