Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void FillStep3()
        {
            var items = new ScheduleNewTripPageMap();
            var page  = new ScheduleNewTripPage();

            page.FillStep3();
        }
Exemplo n.º 3
0
        public void FillStep6()
        {
            var items = new ScheduleNewTripPageMap();

            items.SubmitBtn.Click();
            Driver.WaitForLoad(300);
        }
Exemplo n.º 4
0
        public void RoundTripRecurring(dataSchedulerAppointmentInfo dataScheduler)
        {
            var items = new ScheduleNewTripPageMap();
            var page  = new ScheduleNewTripPage();
            var data  = new ScheduleNewTripPageData();

            aptDate = page.CreateRecurringTrip(dataScheduler);
        }
Exemplo n.º 5
0
        public void FillStep2(string memberId)
        {
            var items = new ScheduleNewTripPageMap();
            var page  = new ScheduleNewTripPage();

            page.FillStep2(memberId);

            items.NextBtn.Click();
            Driver.WaitForLoad(300);
        }
Exemplo n.º 6
0
        public void FillStep1(dataSchedulerCaller data)
        {
            var items = new ScheduleNewTripPageMap();
            var page  = new ScheduleNewTripPage();

            page.FillStep1(data);

            items.NextBtn.Click();
            Driver.WaitForLoad(300);
        }
Exemplo n.º 7
0
        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);
        }