Ejemplo n.º 1
0
 public void Reoccur()
 {
     try { SetMethods.Click(RepeatEvent);
           test.Log(LogStatus.Pass, "Reoccur is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Reoccur is not clicked", e); }
     Driver.Wait(TimeSpan.FromSeconds(3));
 }
Ejemplo n.º 2
0
        public void DeactivateCPT()
        {
            SetMethods.Click(Deactivate);
            // Driver.Instance.SwitchTo().Window(Driver.Instance.WindowHandles.Last());
            // Driver.Instance.SwitchTo().ActiveElement().SendKeys(Keys.Enter);
            IAlert alert = Driver.Instance.SwitchTo().Alert();

            alert.Accept();
        }
Ejemplo n.º 3
0
 // Remove Timeoff 2h + All Day
 public void Remove_Timeoff(string date, string title)
 {
     Calendar_datetime_picker.SendKeys(Keys.Control + "a");
     Calendar_datetime_picker.SendKeys(Keys.Delete);
     SetMethods.EnterText(Calendar_datetime_picker, date);
     Driver.Wait(TimeSpan.FromSeconds(3));
     SetMethods.Click(Weekly);
     Driver.Wait(TimeSpan.FromSeconds(3));
     SetMethods.Click(event_title_timeoff);
     SetMethods.Click(Remove_button);
 }
Ejemplo n.º 4
0
 public void AddCPT()
 {
     SetMethods.GetRandomNumber(CPT_Code);
     SetMethods.EnterText(CPT_Description, "aa");
     CPT_Price.Clear();
     SetMethods.GetRandomNumber(CPT_Price);
     SetMethods.EnterText(CPT_Modifier_A, "g");
     SetMethods.EnterText(CPT_Modifier_B, "hh");
     SetMethods.EnterText(CPT_Modifier_C, "jj");
     SetMethods.EnterText(CPT_Modifier_D, "kkk");
     SetMethods.Click(CPT_Save);
 }
Ejemplo n.º 5
0
 public void EditCPT()
 {
     SetMethods.Click(CPT_Edit);
     Driver.Wait(TimeSpan.FromSeconds(1));
     SetMethods.GetRandomNumber(CPT_Code);
     SetMethods.EnterText(CPT_Description, "aa");
     CPT_Price.Clear();
     SetMethods.GetRandomNumber(CPT_Price);
     SetMethods.EnterText(CPT_Modifier_A, "g");
     SetMethods.EnterText(CPT_Modifier_B, "hh");
     SetMethods.EnterText(CPT_Modifier_C, "jj");
     SetMethods.EnterText(CPT_Modifier_D, "kkk");
     SetMethods.Click(CPT_Save);
 }
Ejemplo n.º 6
0
 public void Appointment_Save()
 {
     try { SetMethods.Click(SaveButton);
           test.Log(LogStatus.Pass, "Appointment Save is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Appointment Save is not clicked", e); }
     Driver.Wait(TimeSpan.FromSeconds(5));
     if (continue_with_selection.Displayed)
     {
         try { SetMethods.Click(continue_with_selection);
               test.Log(LogStatus.Pass, "Continue button is clicked"); }
         catch (Exception e) { test.Log(LogStatus.Fail, "Continue button is not clicked", e); }
         Driver.Wait(TimeSpan.FromSeconds(2));
     }
 }
Ejemplo n.º 7
0
 public void Mark_Saturday()
 {
     try { SetMethods.Click(Saturday);
           test.Log(LogStatus.Pass, "Saturday is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Saturday is not clicked", e); }
 }
Ejemplo n.º 8
0
 public void TimeoffRepeat()
 {
     try { SetMethods.Click(Repeat_checkbox);
           test.Log(LogStatus.Pass, "Timeoff Repeat is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Timeoff Repeat is not clicked", e); }
 }
Ejemplo n.º 9
0
 //First Patient result from Search Bar
 public void FirstPatientfromList()
 {
     SetMethods.Click(existingPatientSearchFirstResultName);
 }
Ejemplo n.º 10
0
 public void TimeoffSave()
 {
     try { SetMethods.Click(SaveButton);
           test.Log(LogStatus.Pass, "Save button is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Save button is not clicked", e); }
 }
 public void GoTo()
 {
     SetMethods.Click(calendarButton);
     Driver.Wait(TimeSpan.FromSeconds(1));
     SetMethods.Click(clinicCalendarButton);
 }
Ejemplo n.º 12
0
 public void GoTo()
 {
     SetMethods.Click(calendarButton);
     SetMethods.Click(myCalendarButton);
 }
Ejemplo n.º 13
0
 public void Remove_this_timeoff()
 {
     SetMethods.Click(Remove_timeoff);
 }
Ejemplo n.º 14
0
 public void Submit()
 {
     SetMethods.Click(submit);
 }
Ejemplo n.º 15
0
 public void clickPopUpBookAppointment()
 {
     SetMethods.Click(popUpBookAppointment);
 }
Ejemplo n.º 16
0
 public void GoTo()
 {
     SetMethods.Click(clinicSettingsButton);
     SetMethods.Click(BusinessInformationButton);
 }
 public void Set_new_patient()
 {
     SetMethods.Click(Patient_typ);
     SetMethods.Click(New_Patient);
 }
 public void GoTo()
 {
     SetMethods.Click(clinicSettingsButton);
     Driver.Wait(TimeSpan.FromSeconds(1));
     SetMethods.Click(SchedulingSettingsButton);
 }
Ejemplo n.º 19
0
 public void continuecookies()
 {
     Thread.Sleep(10);
     SetMethods.Click(btnContinuecookies);
     Thread.Sleep(5);
 }
Ejemplo n.º 20
0
 public void Remove_Appointment()
 {
     SetMethods.Click(appointment_title);
     SetMethods.Click(Cancel);
     SetMethods.Click(CancelAppointment);
 }
Ejemplo n.º 21
0
 public void EndsOnDate()
 {
     SetMethods.ScrollDown(On_Date);
     SetMethods.Click(On_Date);
 }
Ejemplo n.º 22
0
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusAboutUspage OpenAboutUs()
        {
            SetMethods.Click(lnkAboutUs);
            return(new OctopusAboutUspage());
        }
Ejemplo n.º 23
0
 public void AddAppointmentButton()
 {
     try { SetMethods.Click(addAppointmentButton);
           test.Log(LogStatus.Pass, "Add Appointment button is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Add Appointment button is not clicked", e); }
 }
Ejemplo n.º 24
0
 //FCA Consent
 public void FCAconsent()
 {
     Thread.Sleep(30);
     SetMethods.Click(lnkFCAconsent);
     Thread.Sleep(5);
 }
Ejemplo n.º 25
0
 public void Remove_all_timeoff_in_the_series_foward()
 {
     SetMethods.Click(Remove_alltimeoff_in_the_series_foward);
 }
Ejemplo n.º 26
0
 public void Book_TimeOff_Button()
 {
     try { SetMethods.Click(book_TimeOff_Button);
           test.Log(LogStatus.Pass, "Book Timeoff button is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Book Timeoff button is not clicked", e); }
 }
 public void GoTo()
 {
     SetMethods.Click(PatientListButton);
     Driver.Wait(TimeSpan.FromSeconds(2));
     SetMethods.Click(ClinicPatientsButton);
 }
Ejemplo n.º 28
0
 public void NewPatient()
 {
     try { SetMethods.Click(createNewPatientLink);
           test.Log(LogStatus.Pass, "Create a New Patient is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Create a New Patient is not clicked", e); }
 }
Ejemplo n.º 29
0
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusPeoplePage OpenPeoplePage()
        {
            SetMethods.Click(lnkPeople);
            return(new OctopusPeoplePage());
        }
Ejemplo n.º 30
0
 public void PatientContinue()
 {
     try { SetMethods.Click(Continue_button);
           test.Log(LogStatus.Pass, "Continue button is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Continue button is not clicked", e); }
 }