Beispiel #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));
 }
Beispiel #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();
        }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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));
     }
 }
Beispiel #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); }
 }
Beispiel #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); }
 }
Beispiel #9
0
 //First Patient result from Search Bar
 public void FirstPatientfromList()
 {
     SetMethods.Click(existingPatientSearchFirstResultName);
 }
Beispiel #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);
 }
Beispiel #12
0
 public void GoTo()
 {
     SetMethods.Click(calendarButton);
     SetMethods.Click(myCalendarButton);
 }
Beispiel #13
0
 public void Remove_this_timeoff()
 {
     SetMethods.Click(Remove_timeoff);
 }
Beispiel #14
0
 public void Submit()
 {
     SetMethods.Click(submit);
 }
Beispiel #15
0
 public void clickPopUpBookAppointment()
 {
     SetMethods.Click(popUpBookAppointment);
 }
Beispiel #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);
 }
Beispiel #19
0
 public void continuecookies()
 {
     Thread.Sleep(10);
     SetMethods.Click(btnContinuecookies);
     Thread.Sleep(5);
 }
Beispiel #20
0
 public void Remove_Appointment()
 {
     SetMethods.Click(appointment_title);
     SetMethods.Click(Cancel);
     SetMethods.Click(CancelAppointment);
 }
Beispiel #21
0
 public void EndsOnDate()
 {
     SetMethods.ScrollDown(On_Date);
     SetMethods.Click(On_Date);
 }
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusAboutUspage OpenAboutUs()
        {
            SetMethods.Click(lnkAboutUs);
            return(new OctopusAboutUspage());
        }
Beispiel #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); }
 }
Beispiel #24
0
 //FCA Consent
 public void FCAconsent()
 {
     Thread.Sleep(30);
     SetMethods.Click(lnkFCAconsent);
     Thread.Sleep(5);
 }
Beispiel #25
0
 public void Remove_all_timeoff_in_the_series_foward()
 {
     SetMethods.Click(Remove_alltimeoff_in_the_series_foward);
 }
Beispiel #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);
 }
Beispiel #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); }
 }
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusPeoplePage OpenPeoplePage()
        {
            SetMethods.Click(lnkPeople);
            return(new OctopusPeoplePage());
        }
Beispiel #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); }
 }