public void TripPlannerVerifyDropdownOptions(string type) { TripPlannerPage tripPlannerPage = new TripPlannerPage(driver); tripPlannerPage.GoToTripPlannerURL(); tripPlannerPage.VerifyAllDropdownOptions(type); }
public void TripPlannerURL() { TripPlannerPage tripPlannerPage = new TripPlannerPage(driver); tripPlannerPage.GoToTripPlannerURL(); Assert.IsTrue(driver.Url.Contains("translink.ca/trip-planner"), "This is not the Trip Planner page"); //Verify Page Descriptions Assert.IsTrue(driver.FindElement(By.TagName("body")).Text.Contains(tripPlannerPage.tripPlannerPageDescription), tripPlannerPage.tripPlannerPageDescriptFailMsg); }
public void TripPlannerSwitchDirections(string startPoint, string endPoint) { TripPlannerPage tripPlannerPage = new TripPlannerPage(driver); tripPlannerPage.GoToTripPlannerURL(); tripPlannerPage.EnterFromDestinationText(startPoint); tripPlannerPage.EnterToDestinationText(endPoint); //Thread.Sleep(2000); tripPlannerPage.ClickChangeDirectionButton(); //Thread.Sleep(2000); tripPlannerPage.ClickPlanMyTripButton(); }
public void TripPlannerGMapVerify(string startPoint, string endPoint) { TripPlannerPage tripPlannerPage = new TripPlannerPage(driver); tripPlannerPage.GoToTripPlannerURL(); tripPlannerPage.EnterFromDestinationText(startPoint); tripPlannerPage.EnterToDestinationText(endPoint); tripPlannerPage.ClickPlanMyTripButton(); Assert.IsTrue(driver.Url.Contains("google.com/maps"), "Not Google Maps"); Assert.IsTrue(driver.Url.Contains(endPoint), "Incorrect Ending Point"); Assert.IsTrue(driver.Url.Contains(startPoint), "Incorrect Starting Point"); }
public void TripPlannerSampleTrip(string startPoint, string endPoint, string preferedMode, string routeOption) { TripPlannerPage tripPlannerPage = new TripPlannerPage(driver); tripPlannerPage.GoToTripPlannerURL(); tripPlannerPage.ClickMoreOptionsLink(); tripPlannerPage.SelectPreferedTransitMode(preferedMode); tripPlannerPage.SelectPreferedRouteMode(routeOption); tripPlannerPage.EnterFromDestinationText(startPoint); tripPlannerPage.EnterToDestinationText(endPoint); tripPlannerPage.EscKey(); tripPlannerPage.ClickPlanMyTripButton(); }