コード例 #1
0
ファイル: Skill.cs プロジェクト: Lavanya2989/CompPageFactory
        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();
        }
コード例 #2
0
ファイル: Skill.cs プロジェクト: Lavanya2989/CompPageFactory
        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();
        }
コード例 #3
0
ファイル: Skill.cs プロジェクト: Lavanya2989/CompPageFactory
        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();
        }