public void GoogleSearchResults_ReturnsMazdaUSA_AsFirstItem_WhenMazdaIsSearched()
        {
            // Arrange
            GoogleSearchPage googleSearchPage = new GoogleSearchPage(_driver);

            // Act
            GoogleSearchResultsPage searchResultsPage = googleSearchPage.SearchFor("Mazda");

            string linkText = searchResultsPage.GetFirstAdLinkText().Substring(0, 12);

            // Assert
            Assert.AreEqual("Mazdausa.com", linkText);
        }
        public void SearchForShoes_ReturnsShoes()
        {
            // arrange
            // act
            _driver.Manage().Window.Maximize();
            _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
            _driver.Navigate().GoToUrl("http://www.google.com");

            // create the GoogleSearchPage object
            GoogleSearchPage googleSearchPage = new GoogleSearchPage(_driver);

            PageFactory.InitElements(_driver, googleSearchPage);

            // search for shoes
            googleSearchPage.SearchFor("shoes");
            var stats = googleSearchPage.ResultStats.Text;

            // assert
            Assert.IsTrue(stats.Contains("About"), "Result did not includ stats");
        }