public class ControlSteps extends Object
| Constructor and Description |
|---|
ControlSteps() |
| Modifier and Type | Method and Description |
|---|---|
void |
atLeastOneElementIsShown(List<String> elements) |
void |
clickOnTheButton(String name) |
void |
enterValue(String text,
String fieldName) |
void |
fieldValueIsCalculatedByFormula(String field,
String formula) |
void |
noteControlTextAs(String list,
String varName) |
void |
noteTheFollowingFields(cucumber.api.DataTable criteria) |
Control |
verifyElementExists(String fieldName) |
void |
verifyElementsWithVisibility(cucumber.api.DataTable criteria) |
void |
verifyFieldText(String fieldName,
String text) |
void |
verifyMultipleFieldsAvailability(List<String> elements) |
@When(value="^(?:I |)(?:click|tap) on the \"(.*)\" (?:button|element|control)$") public void clickOnTheButton(String name) throws Exception
Exception@Then(value="^(?:I should see |)the \"(.*)\" field is available$") public Control verifyElementExists(String fieldName) throws Exception
Exception@When(value="^(?:I |)enter \"(.*)\" text into the \"(.*)\" field$") public void enterValue(String text, String fieldName) throws Exception
Exception@Then(value="^(?:I should see |)the \"(.*)\" field contains the \"(.*)\" text$") public void verifyFieldText(String fieldName, String text) throws Exception
Exception@Then(value="^(?:I should see |)the following fields are shown:$") public void verifyMultipleFieldsAvailability(List<String> elements) throws Exception
Exception@Then(value="^(?:I should see |)the (?:elements|buttons|controls) with the following visibility:$")
public void verifyElementsWithVisibility(cucumber.api.DataTable criteria)
throws Throwable
Throwable@Then(value="^(?:I should see |)at least one of the following elements is shown:$") public void atLeastOneElementIsShown(List<String> elements) throws Exception
Exception@When(value="^(?:I |)note the \"(.*)\" field text as \"(.*)\"") public void noteControlTextAs(String list, String varName) throws Exception
Exception@When(value="^(?:I |)note following fields values:$")
public void noteTheFollowingFields(cucumber.api.DataTable criteria)
throws Exception
ExceptionCopyright © 2013-2018. All Rights Reserved.