private void SetUserEmail(string UserName) { try { Console.WriteLine("Is Email textbox displayed? {0}", EmailTextbox.Displayed); EmailTextbox.Clear(); EmailTextbox.SendKeys(UserName); } catch (Exception e) { Logger.Error("Error: ", e); throw (e); } }
public void Login(string username, string password) { EmailTextbox.SendKeys(username); PasswordTextbox.SendKeys(password); SubmitButton.Click(); }