public void SignIn(User user) { PersonalAccount.Click(); PersonalAccountEmail.Click(); PersonalAccountEmail.SendKeys(user.Email); PersonalAccountPassword.Click(); PersonalAccountPassword.SendKeys(user.Password); ButtonLogin.Click(); log.Info("Person signed up"); }
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(string email, string password) { TextEmail.SendKeys(email); TextPassword.SendKeys(password); ButtonLogin.Click(); }