示例#1
0
 public User()
 {
     Education = new EducationSection();
     Jobs = new JobSection();
     Projects = new ProjectSection();
     DateOfBirth = DateTime.Today;
 }
示例#2
0
        public void AddEducationSteps()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Educations");
            EducationSection.Click();
            EduAddNewEduBtn.Click();
            EducationCollege.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "College/University"));
            Thread.Sleep(10000);
            EducationCountry.Click();
            SelectElement country = new SelectElement(EducationCountry);

            country.SelectByText(GlobalDefinitions.ExcelLib.ReadData(2, "Country of College/University"));
            EducationTitle.Click();
            SelectElement title = new SelectElement(EducationTitle);

            title.SelectByText(GlobalDefinitions.ExcelLib.ReadData(2, "Title"));
            EducationDegree.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Degree"));
            EducationYear.Click();
            SelectElement year = new SelectElement(EducationYear);

            year.SelectByText(GlobalDefinitions.ExcelLib.ReadData(2, "Year of graduation"));
            AddEduBtn.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[contains(@class,'ns-box ns-growl ns-effect-jelly ns-type-success ns-show')]"), 10);
        }