public void CreateNewTreatmentPlanApplication()
 {
     EnterTreatmentPlanPage();
     Browser.chromebDriver.WaitFindElement(CreateTreatmentPlan);
     //    CreateTreatmentPlan.ClickWait();
     TreatmentPlanName.EnterClearText(Constant.treatmentPlan);
     utility.SelectCodeOnCodeBroswer("//*[@id='gridCodeBrowser']/div[2]/table/tbody/tr[1]/td[5]/div/input");
     Browser.chromebDriver.WaitFindElement(TreatmentPlanSave);
     //   TreatmentPlanSave.ClickWait();
     softAssert.VerifySuccessMsg();
     softAssert.VerifyElementHasEqual(utility.TableCount(treatmentTableCount), Constant.tmpTableCount + 1);
 }
示例#2
0
 public void CreateNewPlanTreatmentApplication()
 {
     Pages.Patient_Page.NewPatientApplication();
     GoTo();
     CreateNewTreatment.ClickOn();
     utility.SelectFromList("newItemMenu", 2);
     TreatmentPlanName.SendKeys("Plan" + RandomNumber.smallNumber());
     //  utility.ClickDropdownAndEnter(TreatmentPlanTherapist);
     TreatmentPlanTherapist.ClickOn();
     TreatmentPlanTherapist.SendKeys(Keys.Down);
     utility.SelectCodeOnCodeBroswer("//*[@id='gridCodeBrowser']/div[2]/table/tbody/tr[1]/td[5]/div/input");
     Thread.Sleep(500);
     TreatmentPlanSave.Click();
     softAssert.VerifyElemenNotHaveEqual(utility.TableCount("//*[@id='tab3_customerTreatmentsGrid_" + Constant.patientDataID + "']/div[2]/div[1]/table/tbody"), Constant.tmpTableCount);
 }