public void CurrentLocationScreenshot() { NextBusPage nextBusPage = new NextBusPage(driver); nextBusPage.GoToNextBus(); nextBusPage.ClickCurrentLocation(); nextBusPage.ClickMapView(); //observe it in Mapview (note this is toggle for text view as well) Thread.Sleep(3000); nextBusPage.TakeScreenShotMapView(); }
public void NextBusRouteInput(string busRoute) { NextBusPage nextBusPage = new NextBusPage(driver); nextBusPage.GoToNextBus(); Assert.IsTrue((driver.FindElement(By.TagName("body")).Text.Contains(nextBusPage.nextBusPageTitle)), nextBusPage.nextBusPageTitleFailMsg); //string busRouteST = busRoute.ToString(); nextBusPage.EnterBusRoute(busRoute); nextBusPage.PressEnterKey(); nextBusPage.ClickMapView(); //observe it in Mapview (note this is toggle for text view as well) Thread.Sleep(3000); Assert.IsTrue(driver.Url.Contains(busRoute), "Incorrect Bus Route is Displayed. It's not Route " + busRoute); nextBusPage.TakeScreenShotMapView(); }