// Validate only 1 in CART public void cartDetailsVerification() { globalLibrary.clickObject("Click Cart Icon", cartIcon, false); globalLibrary.verifyFieldText("Verify Count in Cart", cartDetails, "String", "1 item"); globalLibrary.verifyObjectPresent("Verify the product in Cart is correct", productDetail); }
// Validate that you are on Payment details pag public void validatePaymentPage() { globalLibrary.verifyObjectPresent("Payment Details Page Object", paymentPageVerification); globalLibrary.verifyObjectPresent("Review Your Button verification ", reviewYourOrderButton); }
// Perform a search on home page from a pool of key words given below public void searchProduct() { globalLibrary.launchApplication(url, GlobalConstants.SAFARI); globalLibrary.verifyObjectPresent("Search Text Box Presence", searchTextBox); globalLibrary.setText("Enter Search Text", searchTextBox, "iPhone"); globalLibrary.clickObject("Click for search", submitSearch, false); }