public void LogInAndOutTest() { NavBar navBar = new NavBar(driver); Assert.IsTrue(navBar.LogIn(), "Failed to log in"); Assert.IsTrue(navBar.LogOut(), "Failed to log out"); }
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); }
public void GenericNavBarTest() { NavBar NavBar = new NavBar(driver); NavBar.RunBaseTests(); }