public void Login(User user) { Browser.Wait(); EmailTextField.Clear(); EmailTextField.SendKeys(user.Email); PasswordTextField.Clear(); PasswordTextField.SendKeys(user.Password); LoginButton.Click(); }
public void Login(String email, String password) { Browser.Wait(); EmailTextField.Clear(); EmailTextField.SendKeys(email); PasswordTextField.Clear(); PasswordTextField.SendKeys(password); LoginButton.Click(); }
public void LoginToApp(string username, string password) { AccountIcon.Click(); Thread.Sleep((int)ScriptWaits.SmallerWait); EmailTextField.Clear(); EmailTextField.SendKeys(username); PasswordTextField.Clear(); PasswordTextField.SendKeys(password); SignInButton.Click(); waitMechanism.ExplicitWaitByXPath(webDriver, 20, NavBarXPath); }