public class PageSteps extends Object
| Constructor and Description |
|---|
PageSteps() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptAlert() |
void |
clickOnText(String message) |
void |
navigateToPage(String name) |
void |
pageContainsData(cucumber.api.DataTable data) |
void |
populatePageWithData(cucumber.api.DataTable data) |
void |
verifyCurrentPage(String name) |
void |
verifyMultipleLabelsAvailability(List<String> elements) |
void |
verifyTextPresent(String text) |
@Given(value="^I am on the \"(.*)\" (?:page|screen)$") @When(value="^(?:I |)go to the \"(.*)\" (?:page|screen)$") public void navigateToPage(String name) throws Exception
Exception@Then(value="^I should see the \"(.*)\" (?:page|screen)$") public void verifyCurrentPage(String name) throws Exception
Exception@When(value="^(?:I |)accept the alert message$") public void acceptAlert()
@Then(value="^(?:I should see |)the \"(.*)\" (?:text|label) is shown$") public void verifyTextPresent(String text) throws Exception
Exception@Then(value="^(?:I should see |)the following labels are shown:$") public void verifyMultipleLabelsAvailability(List<String> elements) throws Exception
Exception@When(value="^(?:I |)populate current page with the following data:$")
public void populatePageWithData(cucumber.api.DataTable data)
throws Throwable
Throwable@Then(value="^(?:I should see |)the page contains the following data:$")
public void pageContainsData(cucumber.api.DataTable data)
throws Throwable
ThrowableCopyright © 2013-2018. All Rights Reserved.