public void WhenIClickOnAnImage() { ParksListPage parksPage = ScenarioContext.Current.Get <ParksListPage>(CurrentPage); DetailPage detailMRNP = parksPage.DetailView(); ScenarioContext.Current.Set(detailMRNP, CurrentPage); }
public void GivenIAmOnTheParkListsPage() { ParksListPage parksPage = new ParksListPage(driver); parksPage.Navigate(); ScenarioContext.Current.Set(parksPage, CurrentPage); }
public void WhenIClickParksLink() { LandingPage landingPage = ScenarioContext.Current.Get <LandingPage>(CurrentPage); ParksListPage parksPage = landingPage.GoToParksList(); ScenarioContext.Current.Set(parksPage, CurrentPage); }
public void ThenIShouldBeTakenToParksListPage() { ParksListPage parksPage = ScenarioContext.Current.Get <ParksListPage>(CurrentPage); Assert.AreEqual(driver.Url, "http://localhost:55601/Parks/ParksList"); }