コード例 #1
0
        public void ThenIShouldBeTakenToThatParkSWeatherForecastPage_()
        {
            WeatherPage weatherMRNP = ScenarioContext.Current.Get <WeatherPage>(CurrentPage);

            weatherMRNP.Navigate();
            Assert.AreEqual("http://localhost:55601/Weather/Forecast", driver.Url);
        }
コード例 #2
0
        public void WhenIClickTheForecastsLink()
        {
            DetailPage  detailPage  = ScenarioContext.Current.Get <DetailPage>(CurrentPage);
            WeatherPage weatherMRNP = detailPage.WeatherView();

            ScenarioContext.Current.Set(weatherMRNP, CurrentPage);
        }
コード例 #3
0
        public void WhenIClickOnTheWeatherLinkAtTheBottomOfTheScreen()
        {
            DetailPage  personalPage = ScenarioContext.Current.Get <DetailPage>("CurrentPage");
            WeatherPage weatherpage  = personalPage.ClickOnWeatherLink();

            ScenarioContext.Current.Set(weatherpage, "CurrentPage");
        }
コード例 #4
0
        public void ThenIAmNowOnTheWeatherPage()
        {
            WeatherPage surveyPage = ScenarioContext.Current.Get <WeatherPage>("CurrentPage");

            Assert.AreEqual("http://localhost:55601/Home/FiveDayForecast/CVNP", driver.Url);
        }