//Add Education
        internal void AddEducation()
        {
            GlobalDefinitions.WaitForClickableElement(driver, By.XPath("//a[text()='Education']"), 30);

            EducationButton.Click();

            GlobalDefinitions.wait(30);


            AddNewEducation.Click();

            //adding text in institute name
            InstituteText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "University"));

            // select dropdown
            selectdropdown("country", GlobalDefinitions.ExcelLib.ReadData(2, "Country"));
            selectdropdown("title", GlobalDefinitions.ExcelLib.ReadData(2, "Title"));
            selectdropdown("yearOfGraduation", GlobalDefinitions.ExcelLib.ReadData(2, "Year"));

            //enter degree
            DegreeText.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Degree"));

            GlobalDefinitions.wait(30);

            // add education
            btnAddEducation.Click();

            GlobalDefinitions.wait(30);
        }
예제 #2
0
        //Add Education
        internal void AddEducation1()
        {
            Console.WriteLine("****************************************************************************");
            ExtentionHelpers.TurnOnWait(driver);

            AddNewEducation.Click();

            //adding text in institute name
            InstituteText.SendKeys(ExcelLibHelper.ReadData(3, "University"));

            // select dropdown
            selectdropdown1("country", ExcelLibHelper.ReadData(2, "Country"));
            selectdropdown1("title", ExcelLibHelper.ReadData(2, "Title"));
            selectdropdown1("yearOfGraduation", ExcelLibHelper.ReadData(3, "Year"));

            //enter degree
            DegreeText.SendKeys(ExcelLibHelper.ReadData(3, "Degree"));

            ExtentionHelpers.TurnOnWait(driver);

            // add education
            AddEducation.Click();

            ExtentionHelpers.TurnOnWait(driver);
        }