Esempio n. 1
0
        private void FillDestination(dataSchedulerAppointmentInfoDestinationAddressNetworkProvider destdata)
        {
            Driver.ScrollToElement(Map.NextBtn);
            Map.DestinationName.SendKeys(destdata.DestiantionName);
            Driver.WaitForLoad(data.DefaultWait);

            Map.DestinationStreet.SendKeys(destdata.Street);
            Driver.WaitForLoad(data.DefaultWait);

            Map.DestinationCity.SendKeys(destdata.City);
            Map.DestinationState.SendKeys(destdata.State);
            Map.DestinationZip.SendKeys(destdata.Zip);
            Map.DestinationCounty.SendKeys(destdata.County);
            Map.DoctorNameDest.SendKeys(destdata.DestiantionName);
            Map.FacilityPhoneDest.Click();
            Map.FacilityPhoneDest.SendKeys(destdata.FacilityPhone);
            if (string.IsNullOrEmpty(Helper.GetValueAttribute(Map.DrFirstNameDest)))
            {
                Map.DrFirstNameDest.SendKeys("Dr.Test");
            }
            if (string.IsNullOrEmpty(Helper.GetValueAttribute(Map.DrLastNameDest)))
            {
                Map.DrLastNameDest.SendKeys("Dr.Test");
            }
        }
Esempio n. 2
0
 private void FillPickup(dataSchedulerAppointmentInfoDestinationAddressNetworkProvider destdata)
 {
     Driver.ScrollToElement(Map.DestinationName);
     Map.Step4Street.SendKeys(destdata.Street);
     Map.Step4City.SendKeys(destdata.City);
     Map.Step4State.SendKeys(destdata.State);
     Map.Step4Zip.SendKeys(destdata.Zip);
     Map.Step4County.SendKeys(destdata.County);
     Map.DoctorNamePick.SendKeys(destdata.DestiantionName);
     Map.FacilityPhonePick.Click();
     Map.FacilityPhonePick.SendKeys(destdata.FacilityPhone);
 }