コード例 #1
0
        public void WhenIClickOnAnImage()
        {
            ParksListPage parksPage  = ScenarioContext.Current.Get <ParksListPage>(CurrentPage);
            DetailPage    detailMRNP = parksPage.DetailView();

            ScenarioContext.Current.Set(detailMRNP, CurrentPage);
        }
コード例 #2
0
        public void GivenIAmOnTheParkListsPage()
        {
            ParksListPage parksPage = new ParksListPage(driver);

            parksPage.Navigate();
            ScenarioContext.Current.Set(parksPage, CurrentPage);
        }
コード例 #3
0
        public void WhenIClickParksLink()
        {
            LandingPage   landingPage = ScenarioContext.Current.Get <LandingPage>(CurrentPage);
            ParksListPage parksPage   = landingPage.GoToParksList();

            ScenarioContext.Current.Set(parksPage, CurrentPage);
        }
コード例 #4
0
        public void ThenIShouldBeTakenToParksListPage()
        {
            ParksListPage parksPage = ScenarioContext.Current.Get <ParksListPage>(CurrentPage);

            Assert.AreEqual(driver.Url, "http://localhost:55601/Parks/ParksList");
        }