示例#1
0
 @And("^checkout and verify the same (.*) item added to basket$")
 public void verify_validationMessage(String product) {
   loginPage.checkoutButton().click();
   Assert.assertTrue(loginPage.getProductItemByLinkText(product).isDisplayed());
 }
示例#2
0
 @And("^click addtobasket button and checkout$")
 public void click_addtobasket_button() {
   loginPage.addToBasket();
   loginPage.checkoutButton().click();
 }