public void LoginAs(string username, string password) { UserNameTextBox.SendKeys(username); PasswordTextBox.SendKeys(password); LoginButton.Click(); }
public void LoginToAPP() { UserNameTextBox.Clear(); UserNameTextBox.SendKeys(ReadEnv.ReadData("base", "username")); PasswordText.Clear(); PasswordText.SendKeys(ReadEnv.ReadData("base", "password")); LoginButton.Click(); Assert.True(LaunchButton.Displayed); }