public void CanSearch_Gecko([Values("people", "time")] string term)
        {
            var driver = new FirefoxDriver();

            driver.Url = "http://www.yahoo.com/";
            driver.Navigate();

            YahooSearchPage page = PageFactory.InitElements <YahooSearchPage>(driver);

            page.SearchTerm(term);

            Thread.Sleep(2000);

            var title = driver.Title;

            driver.Close();
            driver.Quit();

            Assert.That(title, Is.EqualTo(term + " - Yahoo Search Results"));
        }
        public void CanSearch_Firefox([Values("people", "time")] string term)
        {
            var service = new FirefoxBinary(@"C:\Program Files (x86)\Mozilla Firefox\firefox.exe");
            var options = new FirefoxProfile();

            var driver = new FirefoxDriver(service, options);

            driver.Url = "http://www.yahoo.com/";
            driver.Navigate();

            YahooSearchPage page = PageFactory.InitElements <YahooSearchPage>(driver);

            page.SearchTerm(term);

            Thread.Sleep(2000);

            var title = driver.Title;

            driver.Close();
            driver.Quit();

            Assert.That(title, Is.EqualTo(term + " - Yahoo Search Results"));
        }