internal void EducationAdd() { // Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ProfilePage"); GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='third']")); //Click Skill tab ClickEdu.Click(); GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//div[contains(text(),'Add New')])[3]")); //Click Add new ClickAddnewE.Click(); //Add University University.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "University")); //Add Country Country.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Country")); //Add Title Title.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Title")); //Add Degree Degree.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Degree")); //Add Year Year.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "YearOfGraduation")); //Save Education SaveEdu.Click(); }
internal void EduDelete() { GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='third']")); //Click Education tab ClickEdu.Click(); GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//div[@data-tab='third']//table//tbody//tr//td[6]//i[@class='remove icon']")); //Delete delEdu.Click(); }
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(); }