Example #1
0
        public void gotoHomePage()
        {
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[contains(.,'Mars Logo')]"), 2000);
            MarsLogoButton.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//h3[@class='mainpage-heading'])[1]"), 2000);
            ProgrammingTechButton.Click();
            //   Thread.Sleep(10000);
//            AllCategoryButton.Click();
        }
Example #2
0
        public bool searchSkill()
        {
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//a[contains(.,'Mars Logo')]"), 2000);
            MarsLogoButton.Click();
            Thread.Sleep(2000);
            searchText.SendKeys("Java");
            searchButton.Click();
            Thread.Sleep(2000);
            string result = searchResult.Text;

            Console.WriteLine("search result text:: " + result);
            return(result.Length > 0 ? true : false);
        }