예제 #1
0
 @When("^'Buy any (\\d+) for £([\\.0-9]+)' promo is available$")
 public void _Buy_any_for_£_promo_is_available(int noOfItems, String expectedPrice)
     throws Throwable {
   BrowseShopPage page = new BrowseShopPage(getDriver());
   page.clickFirstMatchingOffer(String.format("Buy any %d for £%s", noOfItems, expectedPrice));
 }
예제 #2
0
 @Given("^a customer on Browse Shop page$")
 public void a_customer_on_Browse_Shop_page() throws Throwable {
   BrowseShopPage page = new BrowseShopPage(getDriver());
   page.open();
 }