Example #1
0
 def clickSave(self):
     if self._clickById("changePwd_submit"):
         from komodo.dragonweb.pages import ClinicStaffConfigurationPage
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
         logger.info("ChangePasswordPage: clickSave did not navigate correctly")
     return self._navigationReturn()
Example #2
0
 def clickCloseWithoutSaving(self):
     '''
     Clicks on the Close without saving button
     '''
     if self._clickById(self._cancelId):
         self._handleBrowserAlert()
         from komodo.dragonweb.pages import ClinicStaffConfigurationPage
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()
Example #3
0
 def clickSaveAndClose(self):
     '''
     Clicks on the Save and close button
     '''
     if self._clickById(self._continueId):
         from komodo.dragonweb.pages import ClinicStaffConfigurationPage
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
         page = QuestionAnswersPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()
Example #4
0
 def clickLanguage(self):
     '''
     Clicks on the Language Link
     '''
     if self._clickByClass("languageLink"):
         from komodo.dragonweb.pages import ClinicStaffConfigurationPage
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
         from komodo.dragonweb.pages import LanguageAndCountryPage
         page = LanguageAndCountryPage(self.browserDict)
         if page.verifyPage(): return page
     return None
Example #5
0
 def clickEditViewDemographicsAccessSettings(self, memberObject):
     if self.browserDict["TestContext"]['env'].geography == 'jp':
         memberName = memberObject.name.lastName + ' ' + memberObject.name.firstName
         memberAuxName = memberName + ' (' + memberObject.name.auxLastName + ' ' + memberObject.name.auxFirstName + ')'
     else:
         memberName = memberObject.name.lastName + ', ' + memberObject.name.firstName
         memberAuxName = memberName + ' (' + memberObject.name.auxLastName + ', ' + memberObject.name.auxFirstName + ')'
     for key, value in self.clinicianDictionary.items():
         if value.name == memberName or value.name == memberAuxName:
             if self._clickByElement(value._patientGroupsView):
                 from komodo.dragonweb.pages import ClinicStaffConfigurationPage
                 page = ClinicStaffConfigurationPage(self.browserDict)
                 if page.verifyPage(): return page
     return self._navigationReturn()
Example #6
0
 def clickAddClinician(self):
     if self._clickById(self._addClinicianId):
         from komodo.dragonweb.pages import ClinicStaffConfigurationPage
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()