Esempio n. 1
0
        public void PrivateFields_SearchTextInBing_First()
        {
            var bingMainPage = new PrivateElementsNotAccessibleInTests.BingMainPage(_driver);

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");

            bingMainPage.AssertResultsCount("236,000 RESULTS");
        }
Esempio n. 2
0
        public void PrivateFields_SearchTextInBing_First()
        {
            var bingMainPage = new PrivateElementsNotAccessibleInTests.BingMainPage(_driver);

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");
            //Assert.IsTrue(true);
            //WebDriverWait wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(10));
            //wait.Until(ExpectedConditions.PresenceOfAllElementsLocatedBy(By.XPath("//*[@class=' fz-13']")));

            bingMainPage.AssertResultsCount("About 72,900,000 search results");
            //bingMainPage.AssertResultsCount("236,000 RESULTS");
        }