Exemplo n.º 1
0
 public void SearchTextInBing_First()
 {
     BingMainPage bingMainPage = new BingMainPage(this.Driver);
     bingMainPage.Navigate();
     bingMainPage.Search("Automate The Planet");
     bingMainPage.ValidateResultsCount("264,000 RESULTS");
 }
        public void SearchTextInBing_Advanced_PageObjectPattern()
        {
            var bingMainPage = new BingMainPage();

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");
            bingMainPage.Validate().ResultsCount(",000 Results");
        }
        public void SearchTextInBing_First_Observer()
        {
            var bingMainPage = new BingMainPage(Driver.Browser);

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");
            bingMainPage.Validate().ResultsCount("10");
        }
Exemplo n.º 4
0
        public void SearchTextInBing_First()
        {
            var bingMainPage = new BingMainPage(Driver);

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");
            bingMainPage.ValidateResultsCount("264,000 RESULTS");
        }
 public void SearchTextInBing_Advanced_PageObjectPattern_NoSingleton()
 {
     // Usage without Singleton
     var bingMainPage = new BingMainPage();
     bingMainPage.Navigate();
     bingMainPage.Search("Automate The Planet");
     bingMainPage.Validate().ResultsCount(",000 RESULTS");
 }
Exemplo n.º 6
0
        public void SearchTextInBing_Three()
        {
            BingMainPage bingMainPage = new BingMainPage();

            bingMainPage.Navigate();
            bingMainPage.Search("Automate The Planet");
            bingMainPage.Validate().AutomateThePlanetExist();
        }
Exemplo n.º 7
0
        public void PublicProperties_SearchTextInBing_First()
        {
            var bingMainPage = new BingMainPage(_driver);

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

            bingMainPage.AssertResultsCount("236,000 RESULTS");
        }
Exemplo n.º 8
0
        public void PublicProperties_SearchTextInBing_UseElementsDirectly()
        {
            var bingMainPage = new BingMainPage(_driver);

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

            Assert.AreEqual(bingMainPage.ResultsCountDiv, "236,000 RESULTS");
        }
Exemplo n.º 9
0
        public void PublicProperties_SearchTextInBing_UseElementsDirectly()
        {
            var bingMainPage = new BingMainPage(_driver);

            bingMainPage.Navigate();
            bingMainPage.SearchBox.SendKeys("Automate The Planet" + Keys.Enter);
            //Actions act = new Actions(_driver);
            //act.MoveToElement(bingMainPage.GoButton).Click().Perform();
            //bingMainPage.GoButton.Click();

            Assert.AreEqual(bingMainPage.ResultsCountDiv, "236,000 RESULTS");
        }
Exemplo n.º 10
0
 public void SearchForImageFuent()
 {
     _bingPage
     .Navigate()
     .Search("facebook")
     .ClickImages()
     .SetSize(Sizes.Large)
     .SetColor(Colors.BlackWhite)
     .SetTypes(Types.Clipart)
     .SetPeople(People.All)
     .SetDate(Dates.PastYear)
     .SetLicense(Licenses.All);
 }
 public void SearchForAutomateThePlanet()
 {
     _bingMainPage.Navigate();
     _bingMainPage.Search("Automate The Planet");
     _bingMainPage.AssertResultsCountIsAsExpected(264);
 }
Exemplo n.º 12
0
 public void GivenNavigateToBingUrl()
 {
     bingPage = new BingMainPage(navigator.Driver);
     bingPage.Navigate();
 }