Example #1
0
        internal void EduEdit()
        {
            // Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ProfilePage");

            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='third']"));
            //Click Education tab
            ClickEdu.Click();
            EditEdu.Click();

            //Edit University
            University.Clear();
            University.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "University"));

            //Edit Country
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//select[@name='country'])"));
            SelectElement Edit = new SelectElement(Country);

            Edit.SelectByText(GlobalDefinitions.ExcelLib.ReadData(3, "Country"));
            // Country.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "Country"));

            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//select[@name='title'])"));
            //Edit Title
            // EditTitle.Click();
            Title.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "Title"));

            //Edit Degree
            Degree.Clear();
            Degree.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "Degree"));

            //Edit year
            //EditYear.Click();
            Year.SendKeys(GlobalDefinitions.ExcelLib.ReadData(3, "YearOfGraduation"));

            //Click update
            UpdateEdu.Click();
        }