Ejemplo n.º 1
0
        public void LoginPageTest()
        {
            var userName = "******";
            var password = "******";


            using (var driver = new ChromeDriver())
            {
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);

                URLs.OpenUrl(driver);
                var loginPage = new LoginPage(driver);

                loginPage.Login(userName, password);

                var clientPage = new NavigationMenuPage(driver);

                clientPage.GetClientPageHeader().ShouldContain("Clients");
                clientPage.getClientPageHeaderAdmin().ShouldContain("admin");
                clientPage.SelectLogOut();
                loginPage.GetLoginHeaderH2().ShouldContain("Login");
            }
        }