public void InvalidLogIn() { Browser.WaitForElements(new List <IWebElement>() { UserName, UserPassword, LogInButton }); UserName.SendKeys(Browser.getUser()); UserPassword.SendKeys(PasswordGenerator.GetRandomPassword()); LogInButton.Click(); }
public void UserLogin(string email, string password) { WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); wait.Until(ExpectedConditions.ElementToBeClickable(_typeEmail)); UserEmail.Clear(); UserEmail.SendKeys(email); Thread.Sleep(2000); wait.Until(ExpectedConditions.ElementToBeClickable(_typePassword)); UserPassword.Clear(); UserPassword.SendKeys(password); }
public DashBoardPage Loging(string username, string pass) { Console.WriteLine("Find for the form to login"); Utils.FindElementVisible(By.Id("txtUsername")); Console.WriteLine("Fill Login and password with values: " + username + " and " + pass); UserName.SendKeys(username); UserPassword.Clear(); UserPassword.SendKeys(pass); Console.WriteLine("Click on Loging button"); ButtonLogin.Click(); return(new DashBoardPage()); }
public void LogIn() { Browser.WaitForElements(new List <IWebElement>() { UserName, UserPassword, LogInButton }); UserName.Clear(); UserPassword.Clear(); UserName.SendKeys(Browser.getUser()); UserPassword.SendKeys(Browser.getPassword()); LogInButton.Click(); }
public void Submit(string username, string password) { UserEmail.SendKeys(username); UserPassword.SendKeys(password); SignIn.Click(); }