Ejemplo 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);
        }