예제 #1
0
        public void CorrectLogIn(string login, string password)
        {
            var rulesPage  = new RulesPage();
            var routesPage = new RoutesPage();

            PageFactory.InitElements(_driver, rulesPage);
            PageFactory.InitElements(_driver, routesPage);
            _loginPage.EnterLogin(login);
            _loginPage.EnterPassword(password);
            _loginPage.ClickLogInButton();
            rulesPage.ClickRadioButton();
            Assert.IsFalse(string.IsNullOrEmpty(routesPage.LogoutLink.Text));
        }