Example #1
0
 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)
Example #2
0
 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)
Example #3
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 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)
Example #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)