コード例 #1
0
        public void Verify_Required_Fields(string firstName, string lastName, string password, string address, string city, string errorMessage)
        {
            string expectedError = errorMessage;

            CreateAccountPage createAccountPage = NavigateToCreateAccount();

            createAccountPage.FillOutAllRequiredFieldsAndSubmit(
                firstName, lastName, password, address, city, "California", "00000", "1234567890");

            Assert.IsTrue(createAccountPage.ErrorIsVisible);
            Assert.AreEqual(expectedError, createAccountPage.ErrorMessageText);
        }