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); }