public void CreateMeetingApplicationProd() { Thread.Sleep(500); utility.TextClearDropdownAndEnter(SearchPatient, Pages.Patient_Page.PatientUseName); Thread.Sleep(500); utility.ClickDropdownAndEnter(PriceListProd); ApproveMeeting.ClickOn(); softAssert.VerifySuccessMsg(); }
public void SecretaryPermissionApplication() { Pages.Patient_Page.NewConfidentialPatientApplication(); Pages.Home_Page.LogoutApplication(); Pages.Login_Page.LoginMiddleTest(Constant.groupUser, Constant.loginPassword); utility.TextClearDropdownAndEnter(Pages.Home_Page.SearchBox, Pages.Patient_Page.PatientUseName); softAssert.VerifyErrorMsg(); }
public void CreateStandbyApplication() { Pages.Patient_Page.NewPatientApplication(); Pages.Patient_Page.ClosePatientTab.ClickOn(); Pages.Scheduler_Page.EnterStandBySchedulerList(); Pages.Scheduler_Page.StanByCreate.ClickOn(); softAssert.VerifyElementPresentInsideWindow(CreateStandby, CancelStandby); utility.TextClearDropdownAndEnter(StandbySearch, Pages.Patient_Page.PatientUseName); Pages.Meeting_Page.PriceList.ClickOn(); Pages.Meeting_Page.CodeBroswer.ClickOn(); Pages.Meeting_Page.CodeBroswerFirstCode.ClickOn(); Pages.Meeting_Page.SaveTreatmentFromPricelist.ClickOn(); TherapistSearch.SendKeys(Keys.ArrowDown); Thread.Sleep(500); CreateStandby.ClickWait(); softAssert.VerifySuccessMsg(); softAssert.VerifyElementHasEqual(utility.ListCount(standbyListCount), Constant.tmpListCount + 1); }
public void PatientVisitsApplication() { //Pages.PriceList_Page.PriceListFirstCodeName();; Pages.Patient_Page.NewPatientApplication(); GoTo(); Pages.Patient_Page.ClosePatientTab.ClickOn(); Pages.AvailbleTime_Page.GoTo(); Pages.AvailbleTime_Page.SearchAvailbleTimeApplication(); Pages.Meeting_Page.CreateMeetingApplication(); utility.TextClearDropdownAndEnter(Pages.Home_Page.SearchBox, Pages.Patient_Page.PatientUseName); GoTo(); softAssert.VerifyElementHasEqual(utility.TableCount(visitsTableCount), Constant.tmpTableCount); }
//create or fill method to call to use in tests public void NewPatientApplication() { if (Constant.patientCreated == false) { Pages.Home_Page.OpenEntityDropdown.ClickOn(); Pages.Home_Page.CreateNewPatient.ClickOn(); PatientExecute(); PatientConfirmCreate(); Thread.Sleep(500); Constant.patientCreated = true; } else if (Constant.patientCreated == true) { Pages.Home_Page.OpenEntityDropdown.ClickOn(); Pages.Home_Page.CreateNewPatient.ClickOn(); Pages.Patient_Page.ClosePatientTab.ClickOn(); utility.TextClearDropdownAndEnter(Pages.Home_Page.SearchBox, PatientUseName); Thread.Sleep(500); } }