コード例 #1
0
ファイル: edit_object.py プロジェクト: Smotko/ggrc-core
 def save_and_close(self):
   """Edit object and close Edit modal."""
   self.button_save_and_close.click()
   selenium_utils.wait_until_element_visible(
       self._driver, locator.Common.ALERT_SUCCESS_CSS)
   selenium_utils.wait_until_not_present(
       self._driver, self._locator_button_save)
コード例 #2
0
ファイル: edit_object.py プロジェクト: nanohaikaros/ggrc-core
 def save_and_close(self):
     """Edit object and close Edit modal."""
     self.button_save_and_close.click()
     selenium_utils.wait_until_element_visible(
         self._driver, locator.Common.ALERT_SUCCESS_CSS)
     selenium_utils.wait_until_not_present(self._driver,
                                           self._locator_button_save)
コード例 #3
0
ファイル: webui_service.py プロジェクト: egorhm/ggrc-core
 def verify_assessment(self, obj):
   """Navigate to info page of object according to URL of object then find and
   click 'Verify' button then return info page of object in new state"""
   from lib.constants.locator import ObjectWidget
   self.open_info_page_of_obj(obj).click_verify()
   for locator in [ObjectWidget.HEADER_STATE_COMPLETED,
                   WidgetInfoAssessment.ICON_VERIFIED]:
     selenium_utils.wait_until_element_visible(self.driver, locator)
   return self.info_widget_cls(self.driver)
コード例 #4
0
 def verify_assessment(self, obj):
   """Navigate to info page of object according to URL of object then find and
   click 'Verify' button then return info page of object in new state"""
   from lib.constants.locator import ObjectWidget
   self.open_info_page_of_obj(obj).click_verify()
   for elem in [ObjectWidget.HEADER_STATE_COMPLETED,
                locator.WidgetInfoAssessment.ICON_VERIFIED]:
     selenium_utils.wait_until_element_visible(self._driver, elem)
   return self.info_widget_cls(self._driver)