public void TotalAmountTest() { var billingOrderPage = new BillingOrderPage(Driver); var firstItemAmount = "$ 10.00"; var secondItemAmount = "$ 20.00"; var thirdItemAmount = "$ 30.00"; billingOrderPage.ClickFirstItemRadioButton(); var result1 = billingOrderPage.IsExpectedTotalAmountDisplayed(firstItemAmount); billingOrderPage.ClickSecondItemRadioButton(); var result2 = billingOrderPage.IsExpectedTotalAmountDisplayed(secondItemAmount); billingOrderPage.ClickThirdItemRadioButton(); var result3 = billingOrderPage.IsExpectedTotalAmountDisplayed(thirdItemAmount); Assert.Multiple(() => { Assert.IsTrue(result1, "Incorrect total amount for first item"); Assert.IsTrue(result2, "Incorrect total amount for second item"); Assert.IsTrue(result3, "Incorrect total amount for third item"); }); }
public void RequiredFieldsTest() { var billingOrderPage = new BillingOrderPage(Driver); billingOrderPage.ClickSubmitButton(); Assert.IsTrue(billingOrderPage.IsRequiredFieldsValidationErrorsDisplayed()); }
public void SubmitFormWithAllParametersTest_With_DataSets(string i, BillingOrder billingOrder) { var billingOrderPage = new BillingOrderPage(Driver); billingOrderPage.SendOrderForm(billingOrder); Assert.IsTrue(billingOrderPage.IsSuccessMessageDisplayed(), "Error: there is no success message on the page"); }
public bool SubmitFormWithAllParametersTest(BillingOrder order) { var billingOrderPage = new BillingOrderPage(Driver); billingOrderPage.SendOrderForm(order); return(billingOrderPage.IsSuccessMessageDisplayed()); }
public void SubmitFormWithAllParametersTest(string firstName, string lastName, string email, string phone, string addresLine1, string addresLine2, string city, string zipCode, State state, int itemNumber, string comment) { var billingOrderPage = new BillingOrderPage(Driver); billingOrderPage.SendOrderForm( firstName: firstName, lastName: lastName, email: email, phone: phone, addressLine1: addresLine1, addressLine2: addresLine2, city: city, zipCode: zipCode, state: state, itemNumber: itemNumber, comment: comment); Assert.IsTrue(billingOrderPage.IsSuccessMessageDisplayed(), "Error: there is no success message on the page"); }