public bool ApplicantMandatoryFill() { try { while (!ReadyPage()) { ; } Title.SendKeys(Titles.Prof); FirstName.EnterText(string.Format("{0}", Name)); SureName.EnterText(string.Format("{0}", Name)); Email.EnterText(Emails.HrmTest); PhoneNumber.EnterText("081-2564459"); Nationality.Click(); PropertiesCollection.Sleep500(); NationalityGerman.Click(); PropertiesCollection.Sleep100(); ApplyNow.Click(); while (!ReadyThankyou()) { ; } return(true); } catch (Exception) { return(false); } }
public string GetTextName() { return(String.Format("{0} {1}. {2}.", LastName, Name.TrimStart().Substring(0, 1), SureName.TrimStart().Substring(0, 1))); }