Пример #1
0
        public void FormAuthenticationPageTest(IDictionary <string, string> parameters)
        {
            InternetPage internetPage = new InternetPage(this.DriverContext);

            internetPage.OpenHomePage();
            internetPage.GoToFormAuthenticationPage();
            var formFormAuthentication = new FormAuthenticationPage(this.DriverContext);

            formFormAuthentication.EnterUserName(parameters["user"]);
            formFormAuthentication.EnterPassword(parameters["password"]);
            formFormAuthentication.LogOn();
            Verify.That(
                this.DriverContext,
                () => Assert.AreEqual(parameters["message"], formFormAuthentication.GetMessage));
        }