コード例 #1
0
        public void GivenIAmOnAParkSDetailPage()
        {
            DetailPage detailPage = new DetailPage(driver);

            detailPage.Navigate();
            ScenarioContext.Current.Set(detailPage, CurrentPage);
        }
コード例 #2
0
        public void ThenTheResultShouldBeTheDetailPageOfThatPark()
        {
            DetailPage detailMRNP = ScenarioContext.Current.Get <DetailPage>(CurrentPage);

            detailMRNP.Navigate();
            Assert.AreEqual("http://localhost:55601/Parks/Detail?parkCode=MRNP", driver.Url);
        }