Exemplo n.º 1
0
        public void GoogleSearch()
        {
            GoogleHomePage gHome = new GoogleHomePage(driver);

            gHome.MaximizeWindow();
            gHome.getSearchTextBox().SendKeys("Hola");

            GoogleResultPage gSearch = gHome.search();

            gSearch.getFirstResult().Text.ToLower().Should().Contain("Hola".ToLower());
        }
Exemplo n.º 2
0
        public void GoogleSearchUsingData2(string testName)
        {
            var userData = ExcelDataAccess <UserData> .GetTestData(testName, "TestDataSheetPath2");

            GoogleHomePage gHome = new GoogleHomePage(driver);

            gHome.MaximizeWindow();
            gHome.getSearchTextBox().SendKeys(userData.Sarasa);

            GoogleResultPage gSearch = gHome.search();

            gSearch.getFirstResult().Text.ToLower().Should().Contain(userData.Sarasa.ToLower());
        }