コード例 #1
0
        public void LogInAndOutTest()
        {
            NavBar navBar = new NavBar(driver);

            Assert.IsTrue(navBar.LogIn(), "Failed to log in");
            Assert.IsTrue(navBar.LogOut(), "Failed to log out");
        }
コード例 #2
0
        public NavBar LogIn()
        {
            Console.WriteLine("Performing login");
            NavBar retVal = new NavBar(Driver);

            Console.WriteLine("inputing user info");
            UserNameField.SendKeys(TestingConfig.Username);
            PasswordField.SendKeys(TestingConfig.Password);

            Console.WriteLine("submiting");
            SignInButton.Click();
            WebDriverWait wait = new WebDriverWait(Driver, TimeSpan.FromSeconds(2));

            //wait.Until(dr => retVal.MessagesButton);
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.ClassName("NavbarMessageButton")));
            return(retVal);
        }
コード例 #3
0
        public void GenericNavBarTest()
        {
            NavBar NavBar = new NavBar(driver);

            NavBar.RunBaseTests();
        }