public static void CompleteCheckout(IWebDriver driver, WebDriverWait webDriverWait, ShoppingCart shoppingCart)
        {
            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.CheckoutButton, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.CheckoutButtonAddress, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.TermsOfService);

            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.CheckoutButtonShippping, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.Bankwire, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.ConfirmOrderButton, true);

            Assert.AreEqual(shoppingCart.Price.Text, "$33.80");
        }
        public static void AddBySearchInput(IWebDriver driver, WebDriverWait webDriverWait, HomePage homePage, Products product, ProductDetailsPage detailsPage)
        {
            ActionsPerforming.InputOfStringWithSpecialCharacters(driver, webDriverWait, homePage.SearhInput,
                                                                 Config.TestData.SearchItems.SearchTerm);

            ActionsPerforming.ClickElement(driver, webDriverWait, homePage.SearhInputSubmit, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, product.ModelDemo5, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, detailsPage.SubmitButton);

            ActionsPerforming.ClickElement(driver, webDriverWait, detailsPage.ClosePopUpButton, true);

            ActionsPerforming.InputOfStringWithSpecialCharacters(driver, webDriverWait, homePage.SearhInput,
                                                                 Config.TestData.SearchItems.SearchTerm);

            ActionsPerforming.ClickElement(driver, webDriverWait, homePage.SearhInputSubmit, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, product.ModelDemo6, true);

            ActionsPerforming.ClickElement(driver, webDriverWait, detailsPage.SubmitButton);

            ActionsPerforming.ClickElement(driver, webDriverWait, detailsPage.CheckoutButtonDetails, true);
        }
 public static void DeleteProduct(IWebDriver driver, WebDriverWait webDriverWait, HomePage homePage, ShoppingCart shoppingCart)
 {
     ActionsPerforming.ClickElement(driver, webDriverWait, shoppingCart.TrashIconOne, true);
 }