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 bool ApplicantMandatoryTest() { try { while (!ReadyPage()) { ; } ApplyNow.Click(); MandatoryTestTitle(); MandatoryTestName(); MandatoryTestSureName(); MandatoryTestEmail(); MandatoryTestPhoneNumber(); MandatoryTestNationality(); return(true); } catch (Exception) { return(false); } }