예제 #1
0
 def clickAddUser(self):
     if self._clickByIdSendKeys(self._addUserId, jquery=True):
         self._isPresent(self._resetPasswordUserId) #This will invoke the implicit wait
         if self._closePopup(clickOnText=False):
             from komodo.dragonweb.pages.clinicianList import ClinicianListPage
             page = ClinicianListPage(self.browserDict)
             if page.verifyPage(): return page
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()
예제 #2
0
 def clickOk(self):
     for element in self._getElements(byTag="button"):
         if element.text == "OK":
             if self._clickByElement(element):
                 from komodo.dragonweb.pages import ClinicianListPage
                 page = ClinicianListPage(self.browserDict)
                 if page.verifyPage(): return page
                 page = ClinicStaffConfigurationPage(self.browserDict)
                 if page.verifyPage(): return page
     return self._navigationReturn()
예제 #3
0
 def clickSaveAndClose(self):
     '''
     Clicks on the Save And Close button
     '''
     if self._clickById(self._saveAndCloseId, jquery=True):
         from komodo.dragonweb.pages import ClinicianListPage
         from komodo.dragonweb.pages import ViewPatientListPage
         page = ClinicianListPage(self.browserDict)
         if page.verifyPage(): return page
         page = ClinicStaffConfigurationPage(self.browserDict)
         if page.verifyPage(): return page
         page = ViewPatientListPage(self.browserDict)
         if page.verifyPage(): return page
     return self._navigationReturn()