Esempio n. 1
0
        public void SearchGoogle()
        {
            GoogleLanding landing = new GoogleLanding(Browser);

            landing.Navigate("http://www.google.com");
            landing.SendKeys_SearchBar("Sting Ray");
            landing.Enter_SearchBar();

            landing.Click_Result(2);

            Assert.IsTrue(Browser.PageSource.Contains("Stingray"));
        }
        public void SearchGoogle()
        {
            IWebDriver Browser = new FirefoxDriver();

            GoogleLanding landing = new GoogleLanding(Browser);

            landing.Navigate("http://www.google.com");
            landing.SendKeys_SearchBar("Sting Ray");
            landing.Click_SearchButton();

            Thread.Sleep(5000);
            landing.Click_Result(2);
            Thread.Sleep(5000);

            Assert.AreEqual(Browser.Url, "http://www.autodesk.com/products/stingray/overview");

            Browser.Close();
        }