public void PlaceOrderWithTwoItems() { //Complete actions for test homePage.IncreaseQuantity(); homePage.Checkout(); homePage.SwitchToNewTab(); //Assert if two items are in the cart Assert.IsTrue(homePage.OrderHasTwoItems(), "Order does not contain two items"); //Continue completing steps homePage.ConfirmCheckout(); homePage.ConfirmOrder(); homePage.Login(); homePage.ConfirmAddress(); homePage.AcceptTerms(); homePage.ConfirmDelivery(); homePage.ClickPaymentMethod(); homePage.SubmitOrder(); //Assert order is placed Assert.IsTrue(homePage.OrderWasPlaced(), "Order was not placed"); }
public void AcceptSeleniumTerm() { home.NavigateToSeleniumIDE(browser); home.AcceptTerms(browser); }