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); }
public void FillDetails() { TitleCombo.Click(); GivenName.Clear(); GivenName.SendKeys(ExcelOperation.GetData[19]); Surname.Clear(); Surname.SendKeys(ExcelOperation.GetData[20]); RelationshipText.Clear(); RelationshipText.SendKeys(ExcelOperation.GetData[21]); PasswordText.Clear(); PasswordText.SendKeys(ExcelOperation.GetData[22]); PasswordPromptText.Clear(); PasswordPromptText.SendKeys(ExcelOperation.GetData[23]); GenericHelper.AllScreenShot(driver); }
public void LogIn(string userName, string password) { try { if (AnotherUserLink.Displayed) { ElementAccessors.DoClick(this.driver, AnotherUserLink); } } catch (Exception) { } finally { UserNameText.SendKeys(userName); PasswordText.SendKeys(password); ElementAccessors.Wait(4); ElementAccessors.DoClick(this.driver, SignInButton); ElementAccessors.Wait(4); } }