@Component
public class DropDownStepDefinitions
extends java.lang.Object
| Constructor and Description |
|---|
DropDownStepDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
void |
selectDropDownListIndexStep(java.lang.String itemAlias,
java.lang.String itemIndex,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Select an item index from a drop down list
|
void |
selectDropDownListItemStep(java.lang.String itemAlias,
java.lang.String itemName,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Select an item from a drop down list
|
void |
selectSimpleDropDownListIndexStep(java.lang.String itemAlias,
java.lang.String itemIndex,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Select an item index from a drop down list using simple selection
|
void |
selectSimpleDropDownListItemStep(java.lang.String itemAlias,
java.lang.String itemName,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
Select an item from a drop down list using simple selection
|
@When(value="^I select( alias)? \"([^\"]*)\" from (?:a|the) drop down list found by( alias)? \"([^\"]*)\"( if it exists)?$")
public void selectSimpleDropDownListItemStep(java.lang.String itemAlias,
java.lang.String itemName,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
itemAlias - If this word is found in the step, it means the itemName is found from the data
set.itemName - The index of the item 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.exists - 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 select( alias)? \"([^\"]*)\" from (?:a|the) drop down list with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\"( if it exists)?$")
public void selectDropDownListItemStep(java.lang.String itemAlias,
java.lang.String itemName,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
itemAlias - If this word is found in the step, it means the itemName is found from the data
set.itemName - The index of the item 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.exists - 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 select option(?: number)?( alias)? \"(\\d+)\" from (?:a|the) drop down list found by( alias)? \"([^\"]*)\"( if it exists)?$")
public void selectSimpleDropDownListIndexStep(java.lang.String itemAlias,
java.lang.String itemIndex,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
itemAlias - If this word is found in the step, it means the itemName is found from the data
set.itemIndex - The index of the item 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.exists - 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 select option(?: number)?( alias)? \"([^\"]*)\" from (?:a|the) drop down list with (?:a|an|the) (ID|class|xpath|name|css selector)( alias)? of \"([^\"]*)\"( if it exists)?$")
public void selectDropDownListIndexStep(java.lang.String itemAlias,
java.lang.String itemIndex,
java.lang.String selector,
java.lang.String alias,
java.lang.String selectorValue,
java.lang.String exists)
itemAlias - If this word is found in the step, it means the itemName is found from the data
set.itemIndex - The index of the item 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.exists - 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.