Exemplo n.º 1
0
 public void CreateMeetingApplicationProd()
 {
     Thread.Sleep(500);
     utility.TextClearDropdownAndEnter(SearchPatient, Pages.Patient_Page.PatientUseName);
     Thread.Sleep(500);
     utility.ClickDropdownAndEnter(PriceListProd);
     ApproveMeeting.ClickOn();
     softAssert.VerifySuccessMsg();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 //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);
     }
 }