private void educationParse(HtmlNode item) { foreach (HtmlNode currNode in item.ChildNodes) { if (currNode.Name == "div") { string strMainTitle = ""; string strTitle = ""; ProfileEducation currEducation = new ProfileEducation(); // TODO: CUT THE BAD STRING foreach (HtmlNode HeaderNode in currNode.FirstChild.FirstChild.ChildNodes) { if (HeaderNode.Name == "header") { foreach (HtmlNode educationNode in HeaderNode.ChildNodes) { if (educationNode.Name == "h4") { strMainTitle = educationNode.InnerText; } if (educationNode.Name == "h5") { strTitle = ", " + educationNode.InnerText; } } currEducation.Education = strMainTitle + strTitle; } } linkedinProfile.ProfileEducation.Add(currEducation); } } }
public void WhenIDeleteEducation() { education = new ProfileEducation(driver); //start test // ExtentReport.test = ExtentReport.extent.StartTest("Delete Education"); education.DeleteEduation(); }
public void educationProfile() { //using Chrome using (GlobalDefinitions.driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) //Using Firefox //using (GlobalDefinitions.driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))) { string ProfileMenuOption = "Profile"; string addNewOption = "Education"; //sign in SignIn newSignIn = new SignIn(); newSignIn.LoginSteps(); //MenuOption to Click ClickMenu clickMenu = new ClickMenu(); clickMenu.clickMenuOptions(ProfileMenuOption); //click on options Language, Skills, Education, Certifications clickMenu.clickSubMenuOptions(addNewOption); //click on Add New button ProfileOptions addNewButton = new ProfileOptions(); addNewButton.clickAddNew(addNewOption); //add and verify Skill ProfileEducation addEducation = new ProfileEducation(); addEducation.addNewEducation(); addEducation.rowEducationPresent(); } }
public void WhenIUpdateEducation() { education = new ProfileEducation(driver); //start test //ExtentReport.test = ExtentReport.extent.StartTest("Update Education"); education.UpdateEducation(); GlobalDefinitions.wait(50); }
public void TestProfileEducation() { test = extent.StartTest("Add/Update/Delete education details"); GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPathProfileDetail, "Education"); ProfileEducation profileEducation = new ProfileEducation(); profileEducation.NavigateToEducationPage(); profileEducation.AddEducation(); profileEducation.ValidateAddedEducation(); profileEducation.DeleteEducation(); profileEducation.ValidateDeletedEducation(); profileEducation.UpdateAddedEducation(); profileEducation.ValidateUpdatedEducation(); }
public void WhenIDeleteEducation() { profileeducation = new ProfileEducation(driver); profileeducation.DeleteEduation(); }
public void WhenIEditMyEducation() { profileeducation = new ProfileEducation(driver); profileeducation.UpdateEducation(); }
public void WhenIAddEducation() { profileeducation = new ProfileEducation(driver); profileeducation.AddEducation1(); }