public void CurrentConditionsList()
        {
            MainPage mainPage = new MainPage(session);

            mainPage.OpenSearchLocationPage();
            SearchLocationsPage searchLocationPage = new SearchLocationsPage(session);

            Assert.IsTrue(searchLocationPage.IsPageOpen);
        }
        public void AddButtonTest()
        {
            MainPage mainPage = new MainPage(session);

            mainPage.OpenSearchLocationPage();
            SearchLocationsPage searchLocationPage = new SearchLocationsPage(session);

            Assert.IsTrue(searchLocationPage.IsPageOpen);
        }
示例#3
0
        public void BackNavigationTest()
        {
            MainPage mainPage = new MainPage(session);

            mainPage.OpenSearchLocationPage();
            SearchLocationsPage searchLocationPage = new SearchLocationsPage(session);

            searchLocationPage.ReturnToMainPage();
            Assert.IsTrue(mainPage.IsPageOpen);
        }
示例#4
0
        public void TestMethod()
        {
            MainPage mainPage = new MainPage(session);

            mainPage.OpenSearchLocationPage();
            SearchLocationsPage searchPage = new SearchLocationsPage(session);

            searchPage.SearchForLocation("New York");
            searchPage.ReturnToMainPage();
            //TODO: Add more actions and asserts
        }
示例#5
0
        public void SearchForLocationTest()
        {
            MainPage mainPage = new MainPage(session);

            mainPage.OpenSearchLocationPage();
            SearchLocationsPage searchLocationPage = new SearchLocationsPage(session);

            searchLocationPage.SearchForLocation("London");
            int actualCount = searchLocationPage.GetLocationCount;

            Assert.AreEqual(30, searchLocationPage.GetLocationCount);
        }