示例#1
0
 def clickCancel(self):
     if self._clickById(self._cancelButton):
         from komodo.dragonweb.pages import PatientDetailPage
         page = PatientDetailPage(self.browserDict)
         if page.verifyPage():
             return page
         page = EnrollPatientPageStep1(self.browserDict)
         if page.verifyPage():
             return page
     return self._navigationReturn()
示例#2
0
 def clickCloseWithoutSaving(self):
     if self._clickById(self._closeWithoutSavingId):
         self._handleBrowserAlert()
         from komodo.dragonweb.pages import PatientDetailPage
         page = PatientDetailPage(self.browserDict)
         if page.verifyPage():
             return page
         page = EnrollPatientPageStep1(self.browserDict)
         if page.verifyPage():
             return page
     return self._navigationReturn()
示例#3
0
 def closePopUp(self):
     '''
     Closes the pop up generated by clicking the close link on the top right
     @returns: Patient Detail Page
     @rtype: Class
     '''
     if self._closeMultiplePopups():
         page = EnrollPatientPageStep2(self.browserDict)
         if page.verifyPage(): return page
         from komodo.dragonweb.pages import PatientDetailPage
         page = PatientDetailPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()
示例#4
0
 def clickSaveAndClose(self):
     if self._clickByIdSendKeys(self._continueButton):
         from komodo.dragonweb.pages.patientDetail import PatientDetailPage
         page = PatientDetailPage(self.browserDict)
         if page.verifyPage(): 
             try:
                 if self._isPresent("primaryPatientFollowingRemoval_message") or self._isPresent("commReplacement_message") or \
                    self._isPresent("eqpReplacement_message") or self._isPresent("pgReplacement_message"):
                     return PopUpMessage(self.browserDict)
             except:
                 pass
             return page
         from komodo.dragonweb.pages import ViewPatientListPage
         page = ViewPatientListPage(self.browserDict)
         if page.verifyPage(): return page
         page = EnrollPatientPageStep2(self.browserDict)
         if page.verifyPage():
             try:
                 page._errorMessage = self._getText(byClass="errors")
             except:
                 try:
                     page._errorMessage = self._getText(byClass="warnings")
                 except:
                     try:
                         if self._isPresent("primaryPatientFollowingRemoval_message") or self._isPresent("commReplacement_message") or \
                            self._isPresent("eqpReplacement_message") or self._isPresent("pgReplacement_message"):
                             return PopUpMessage(self.browserDict)
                     except:
                         pass
             return page
     return self._navigationReturn()
示例#5
0
 def clickContinue(self):
     if self._clickById(self._continueButton):
         page = EnrollPatientPageStep3(self.browserDict)
         if page.verifyPage(): return page
         page = EnrollPatientPageStep2(self.browserDict)
         if page.verifyPage():
             try:
                 page._errorMessage = self._getText(byClass="errors")
             except:
                 try:
                     page._errorMessage = self._getText(byClass="warnings")
                 except:
                     pass
             return page
         from komodo.dragonweb.pages.patientDetail import PatientDetailPage
         page = PatientDetailPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()