public void Login() { var select = Browser.Driver.FindElement(By.Id("client_id")); var selectelement = new SelectElement(select); selectelement.SelectByIndex(2); var user = UserGenerator.Generate(); txtUserName.SendKeys(user.Username); txtPassword.SendKeys(user.Password); btnLogin.Click(); }
public void LogInAsLastRegisteredUser() { LogIn(UserGenerator.Generate()); }