public void Go_To_AddAddressPage() { addAddressPage.AddAddress(); var addressDetails = new AddressDetailsPage(driver); var message = "Address was successfully created."; Assert.AreEqual(message, addressDetails.lblSuccess.Text); }
public void Should_Add_Address_Successfully() { var addAddressBo = new AddAddressBO { FirstName = "Changed AC George", ZipCode = "Changed Zip Code" }; var addressDetailsPage = addAddressPage.AddAddress(addAddressBo); Assert.AreEqual("Address was successfully created.", addressDetailsPage.SuccessfullyCreatedMessage); }