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

            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='second']"));

            //Click Skill tab
            ClickSkilltab.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//*[@data-tab='second']//table//tbody//tr//td[3]//i[@class='outline write icon'])"));

            //Edit Skill
            EditSkill.Click();

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

            //Edit Level
            SelectElement Edit = new SelectElement(SelectSkillLevel);

            Edit.SelectByText(GlobalDefinitions.ExcelLib.ReadData(3, "Skill Level"));

            //Click update
            UpdateSkill.Click();
        }
Example #2
0
        internal void SkillDelete()
        {
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='second']"));
            //Click Skill tab
            ClickSkilltab.Click();

            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//table//tbody[last()]//tr//td[3]//i[@class='remove icon'])"));
            delSkill.Click();
        }
Example #3
0
        internal void SkillAdd()
        {
            // Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ProfilePage");
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[@data-tab='second']"));

            //Click Skill tab
            ClickSkilltab.Click();

            //Click Add new
            ClickAddnewSkill.Click();

            //Add Skill
            AddnewSkill.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Skill"));

            //Add Level
            SelectSkillLevel.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Skill Level"));

            //Save Skill
            SaveSkill.Click();
        }