// Go back to Cart Page, Remove the item from cart and validate cart is empty
  public void removeProductFromCart() {
    try {
      globalLibrary.clickObject("Click Cart Icon", cartIcon, false);
      globalLibrary.clickObject("Remove the product from Cart", removeLink, false);

      Thread.sleep(2000);
      globalLibrary.verifyFieldText(
          "Verify Count in Cart", cartDetailsAfterRemoval, "String", "0 items");
      signOut();

    } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
  public void shippingDetails() {

    globalLibrary.clickObject("Click Check out Button", checkoutCart, false);

    globalLibrary.setText("Enter user id", userIdTextBox, "*****@*****.**");
    globalLibrary.setText("Enter Password", passwordTextBox, "walmart");
    globalLibrary.clickObject("Click to Sign In", signInButton, false);

    globalLibrary.clickObject(
        "Choose shipping or pickup Button", shippingAddressContButton1, false);
    globalLibrary.clickObject(
        "Choose enter shipping address button", shippingAddressContButton2, false);
  }
 // 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);
 }
  // 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);
  }
 // login using existing account which is set up with at least one shipping address
 public void userSignIn() {
   globalLibrary.setText("Enter user id", userIdTextBox, "*****@*****.**");
   globalLibrary.setText("Enter Password", passwordTextBox, "walmart");
   globalLibrary.clickObject("Click to Sign In", signInButton, false);
 }
 // Add the item to cart
 public void addProductToCart() {
   globalLibrary.clickObject("Click Add to Cart", addToCart, false);
   globalLibrary.clickObject("Click to Checkout", checkOutProduct, false);
 }
 // select the product
 public void selectProduct() {
   globalLibrary.clickObject("Select the product to place in cart", selectedProduct, false);
 }
 // 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);
 }
 public void signOut() {
   globalLibrary.openNewUrl("SignoutPage", "https://www.walmart.com/account/logout");
   globalLibrary.closeSelenium();
 }