Пример #1
0
        internal void FilterSearchSkills()
        {
            Thread.Sleep(500);

            // Input  Search skills "QA"
            SearchSkillsField.SendKeys("QA");

            // Click the Search button
            SearchIcon.Click();
            Thread.Sleep(1000);

            // Click the Onsite option
            Onsite.Click();
            Thread.Sleep(500);

            // Verify if filter the the selected filter result
            IWebElement CategoryResult = GlobalDefinitions.driver.FindElement(By.XPath("//p[@class='row-padded'][contains(text(),'QA')]"));

            Assert.That(CategoryResult.Text, Is.EqualTo("QA"));
        }
Пример #2
0
        internal void CategorySearchSkills()
        {
            // Wait 0.5 second
            Thread.Sleep(500);

            // Input Search skills "Testing"
            SearchSkillsField.SendKeys("Testing");

            // Click the Search button
            SearchIcon.Click();
            Thread.Sleep(1000);

            // Click the Category with results
            Category.Click();

            // Click the Subcategory with results
            Subcategory.Click();
            Thread.Sleep(500);

            // Verify if seller is able to see the selected category result
            IWebElement CategoryResult = GlobalDefinitions.driver.FindElement(By.XPath("//p[@class='row-padded'][contains(text(),'Testing')]"));

            Assert.That(CategoryResult.Text, Is.EqualTo("Testing"));
        }