Example #1
0
        public void SearchTextInSearchEngine_Second()
        {
            SearchEngineMainPage searchEngineMainPage = new SearchEngineMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Search("Automate The Planet");
            Assert.IsTrue(searchEngineMainPage.GetResultsCount().Contains(".000 Resultados"));
            System.Threading.Thread.Sleep(3000);
        }
Example #2
0
        public void SearchTextInSearchEngine_First()
        {
            SearchEngineMainPage searchEngineMainPage = new SearchEngineMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Search("Automate The Planet");

            Assert.IsTrue(searchEngineMainPage.ResultsCountDiv.Text.Contains("381.000 Resultados"));
        }
        public void SearchText_No_Singleton_Test()
        {
            SearchEngineMainPage searchEngineMainPage = new SearchEngineMainPage(Driver.WebBrowser);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Search("Automate The Planet");
            Assert.IsTrue(searchEngineMainPage.GetResultsCount().Contains(".000 Resultados"));
            System.Threading.Thread.Sleep(3000);
        }