Example #1
0
        //This method is used to search skill by filter type in serch text box and in search result page
        public void SearchByFilterType()
        {
            PopulateDataForSearchSkill();
            ProfilePage profile = new ProfilePage();

            profile.ClickShareSkill();

            // click on SearchSkill textbox
            Base.driver.WaitForElement(By.XPath("//div[@class='ui small icon input search-box']/input"));
            txtSearchSkill.Click();
            txtSearchSkill.SendKeys(ExcelLibrary.ReadData(2, "Filter"));

            //click on search icon
            Base.driver.WaitForElement(By.XPath("//div[@class='ui small icon input search-box']/i"));
            btnSearchIcon.Click();

            Base.driver.WaitForClickableElement(By.XPath("//div[@class='ui buttons']/button"));

            int listFilter = Filter.Count();


            for (int i = 0; i < listFilter; i++)
            {
                String txtFilter = Filter.ElementAt(i).Text;
                if (txtFilter == ExcelLibrary.ReadData(4, "Filter"))
                {
                    Thread.Sleep(10000);

                    Filter.ElementAt(i).Click();
                }
            }
        }
Example #2
0
        //Search Skill by category entering category directly into textbox
        public void SearchSkillByCategory()
        {
            PopulateDataForSearchSkill();
            ProfilePage profile = new ProfilePage();

            profile.ClickShareSkill();

            // click on SearchSkill textbox
            Base.driver.WaitForElement(By.XPath("//div[@class='ui small icon input search-box']/input"));
            txtSearchSkill.Click();
            txtSearchSkill.SendKeys(ExcelLibrary.ReadData(2, "Category"));

            //click on search icon
            Base.driver.WaitForElement(By.XPath("//div[@class='ui small icon input search-box']/i"));
            btnSearchIcon.Click();
        }