Beispiel #1
0
        public void Test1()
        {
            DuckSearch duck = new DuckSearch(driver);

            duck.OpenUrl(URL);
            duck.SearchElement();
            int num = duck.AutoComplete();

            Assert.AreEqual(num, 8);
            driver.Quit();
        }
Beispiel #2
0
        public void Test2()
        {
            DuckSearch duck = new DuckSearch(driver);

            duck.OpenUrl(URL);
            duck.SearchElement();
            duck.SearchButton();
            int num = duck.SearchResults();

            Assert.AreEqual(num, 10);
            int numresult = duck.SideBar();

            Assert.AreEqual(numresult, 1);
            driver.Quit();
        }