Esempio n. 1
0
        public void TestSearchForShowingTime()
        {
            System.Console.WriteLine("TestSearchForShowingTime");
            String           sShowingTimeURL  = "https://www.showingtime.com/";
            GoogleSearchPage googleSearchPage = new GoogleSearchPage(driver);

            googleSearchPage.enterSearchText("ShowingTime");

            googleSearchPage.clickGoogleSearchButton();
            googleSearchPage.checkUrl("search");

            String sUrl = googleSearchPage.getLinkFromFirstResult();

            Assert.True(sUrl.Contains(sShowingTimeURL), "Wrong Url: Expected: " + sShowingTimeURL + ". Actual: " + sUrl);

            googleSearchPage.clickOnLinkInFirstResult();
            googleSearchPage.checkUrl(sShowingTimeURL);

            Assert.Pass();
        }