コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
 public void WhenIDeleteEducation()
 {
     education = new ProfileEducation(driver);
     //start test
     // ExtentReport.test = ExtentReport.extent.StartTest("Delete Education");
     education.DeleteEduation();
 }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
 public void WhenIUpdateEducation()
 {
     education = new ProfileEducation(driver);
     //start test
     //ExtentReport.test = ExtentReport.extent.StartTest("Update Education");
     education.UpdateEducation();
     GlobalDefinitions.wait(50);
 }
コード例 #5
0
            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();
            }
コード例 #6
0
 public void WhenIDeleteEducation()
 {
     profileeducation = new ProfileEducation(driver);
     profileeducation.DeleteEduation();
 }
コード例 #7
0
 public void WhenIEditMyEducation()
 {
     profileeducation = new ProfileEducation(driver);
     profileeducation.UpdateEducation();
 }
コード例 #8
0
 public void WhenIAddEducation()
 {
     profileeducation = new ProfileEducation(driver);
     profileeducation.AddEducation1();
 }