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)); }
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(); }
// 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); }
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); }
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); }
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)); } }
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); } }
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); } }
//First Patient result from Search Bar public void FirstPatientfromList() { SetMethods.Click(existingPatientSearchFirstResultName); }
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); }
public void GoTo() { SetMethods.Click(calendarButton); SetMethods.Click(myCalendarButton); }
public void Remove_this_timeoff() { SetMethods.Click(Remove_timeoff); }
public void Submit() { SetMethods.Click(submit); }
public void clickPopUpBookAppointment() { SetMethods.Click(popUpBookAppointment); }
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); }
public void continuecookies() { Thread.Sleep(10); SetMethods.Click(btnContinuecookies); Thread.Sleep(5); }
public void Remove_Appointment() { SetMethods.Click(appointment_title); SetMethods.Click(Cancel); SetMethods.Click(CancelAppointment); }
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()); }
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); } }
//FCA Consent public void FCAconsent() { Thread.Sleep(30); SetMethods.Click(lnkFCAconsent); Thread.Sleep(5); }
public void Remove_all_timeoff_in_the_series_foward() { SetMethods.Click(Remove_alltimeoff_in_the_series_foward); }
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); }
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()); }
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); } }