Пример #1
0
        public void ElementsAsProperties_SearchTextInBing_First()
        {
            var bingMainPage = new ElementsExposedAsProperties.BingMainPage(_driver);

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

            bingMainPage.AssertResultsCount("236,000 RESULTS");
        }
Пример #2
0
        public void ElementsAsProperties_SearchTextInBing_UseElementsDirectly()
        {
            var bingMainPage = new ElementsExposedAsProperties.BingMainPage(_driver);

            bingMainPage.Navigate();
            bingMainPage.Elements.SearchBox.SendKeys("Automate The Planet");
            bingMainPage.Elements.GoButton.Click();

            Assert.AreEqual(bingMainPage.Elements.ResultsCountDiv, "236,000 RESULTS");
        }
Пример #3
0
        public void ElementsAsProperties_SearchTextInBing_UseElementsDirectly()
        {
            var bingMainPage = new ElementsExposedAsProperties.BingMainPage(_driver);

            bingMainPage.Navigate();
            bingMainPage.Elements.SearchBox.SendKeys("Automate The Planet");
            bingMainPage.Elements.GoButton.Click();

            bingMainPage.AssertResultsCount("About 73,900,000 search results");
        }