public void FillStep4(dataSchedulerAppointmentInfo appdata) { var items = new ScheduleNewTripPageMap(); var page = new ScheduleNewTripPage(); var data = new ScheduleNewTripPageData(); var roundTrip = new RoundTrip(); var roundTripItems = new RoundTripMap(); Driver.ScrollToElement(items.NextBtn); Driver.ScrollToElement(items.ApptDateTime); items.ApptDateTime.Clear(); Driver.WaitForLoad(data.DefaultWait); roundTrip.FillStep4(appdata); try { Driver.CustomClick(roundTripItems.Validate); } catch (Exception ex) { Driver.SaveScreenshot(Helper.SCREEN_SHOT_PATH); Console.WriteLine($"{DateTime.Now} - Validate the trip on AppointmentInfo page. " + $"Exception message {ex.Message}. \n Please, see the screenshot with error"); } Driver.WaitForLoad(data.ValidationTimeout); }
public void FillStep3() { var items = new ScheduleNewTripPageMap(); var page = new ScheduleNewTripPage(); page.FillStep3(); }
public void FillStep6() { var items = new ScheduleNewTripPageMap(); items.SubmitBtn.Click(); Driver.WaitForLoad(300); }
public void RoundTripRecurring(dataSchedulerAppointmentInfo dataScheduler) { var items = new ScheduleNewTripPageMap(); var page = new ScheduleNewTripPage(); var data = new ScheduleNewTripPageData(); aptDate = page.CreateRecurringTrip(dataScheduler); }
public void FillStep2(string memberId) { var items = new ScheduleNewTripPageMap(); var page = new ScheduleNewTripPage(); page.FillStep2(memberId); items.NextBtn.Click(); Driver.WaitForLoad(300); }
public void FillStep1(dataSchedulerCaller data) { var items = new ScheduleNewTripPageMap(); var page = new ScheduleNewTripPage(); page.FillStep1(data); items.NextBtn.Click(); Driver.WaitForLoad(300); }
public void FillStep5(dataSchedulerProvider schedulerProvider) { var items = new ScheduleNewTripPageMap(); IList <IWebElement> providers = items.SmartDispatchTabContent.FindElements(By.TagName("tr")); var prov = providers.Where(p => p.Text.Contains(schedulerProvider.ProviderName)).First(); Driver.CustomClick(prov); items.NextBtn.Click(); Driver.WaitForLoad(300); }