public void WhenIClickTheForecastsLink()
        {
            DetailPage  detailPage  = ScenarioContext.Current.Get <DetailPage>(CurrentPage);
            WeatherPage weatherMRNP = detailPage.WeatherView();

            ScenarioContext.Current.Set(weatherMRNP, CurrentPage);
        }
        public void GivenIAmOnAParkSDetailPage()
        {
            DetailPage detailPage = new DetailPage(driver);

            detailPage.Navigate();
            ScenarioContext.Current.Set(detailPage, CurrentPage);
        }
        public void ThenTheResultShouldBeTheDetailPageOfThatPark()
        {
            DetailPage detailMRNP = ScenarioContext.Current.Get <DetailPage>(CurrentPage);

            detailMRNP.Navigate();
            Assert.AreEqual("http://localhost:55601/Parks/Detail?parkCode=MRNP", driver.Url);
        }
        public void WhenIClickOnTheWeatherLinkAtTheBottomOfTheScreen()
        {
            DetailPage  personalPage = ScenarioContext.Current.Get <DetailPage>("CurrentPage");
            WeatherPage weatherpage  = personalPage.ClickOnWeatherLink();

            ScenarioContext.Current.Set(weatherpage, "CurrentPage");
        }
        public void WhenIClickOnAnImage()
        {
            ParksListPage parksPage  = ScenarioContext.Current.Get <ParksListPage>(CurrentPage);
            DetailPage    detailMRNP = parksPage.DetailView();

            ScenarioContext.Current.Set(detailMRNP, CurrentPage);
        }