コード例 #1
0
 def __init__(self, driver, obj_name):
     super(CommonUnifiedMapperModal, self).__init__(driver)
     # labels
     self.modal_elem = selenium_utils.get_when_visible(
         self._driver, self._locators.MODAL_CSS)
     self.filter_toggle = base.Toggle(self.modal_elem,
                                      self._locators.FILTER_TOGGLE_CSS)
     self.filter_toggle.is_activated = True
     self.title_modal = base.Label(self.modal_elem,
                                   self._locators.MODAL_TITLE)
     if obj_name != objects.ASSESSMENT_TEMPLATES:
         self.obj_type = base.Label(self.modal_elem,
                                    self._locators.OBJ_TYPE)
     # user input elements
     self.tree_view = base.UnifiedMapperTreeView(self._driver,
                                                 obj_name=obj_name)
     self._add_attr_btn = None
     self.search_result_toggle = base.Toggle(
         self.modal_elem, self._locators.RESULT_TOGGLE_CSS)
     self.open_in_new_frontend_btn = self._browser.link(
         class_name=["btn", "btn-small", "btn-white"],
         text="Open in new frontend")
     self._create_and_map_obj_btn = self._browser.element(
         class_name="modal-header").button(text="Create and map new object")
     self._obj_type_select = self._browser.element(name="type-select")
コード例 #2
0
 def __init__(self, driver, obj_name):
     super(CommonUnifiedMapperModal, self).__init__(driver)
     # labels
     self.filter_toggle = base.Toggle(driver,
                                      self._locators.FILTER_TOGGLE_CSS)
     self.filter_toggle.is_activated = True
     self.title_modal = base.Label(driver, self._locators.MODAL_TITLE)
     self.obj_type = base.Label(driver, self._locators.OBJ_TYPE)
     # user input elements
     self.tree_view = base.UnifiedMapperTreeView(driver, obj_name=obj_name)
     self._add_attr_btn = None
     self.search_result_toggle = base.Toggle(
         driver, self._locators.RESULT_TOGGLE_CSS)
コード例 #3
0
 def __init__(self, driver, obj_name):
     super(CommonUnifiedMapperModal, self).__init__(driver)
     # labels
     self.title_modal = base.Label(driver, self._locators.MODAL_TITLE)
     self.obj_type = base.Label(driver, self._locators.OBJ_TYPE)
     self.filter_by_expression = base.Label(
         driver, self._locators.FILTER_BY_EXPRESSION)
     # user input elements
     self.filter_via_expression_text_box = base.TextInputField(
         driver, self._locators.FILTER_VIA_EXPRESSION_TEXT_BOX)
     self.filter_by_state_text_box = base.DropdownStatic(
         driver, self._locators.FILTER_BY_STATE_DROPDOWN)
     self.tree_view = base.UnifiedMapperTreeView(driver, obj_name=obj_name)
コード例 #4
0
 def __init__(self, driver, obj_name):
   super(CommonUnifiedMapperModal, self).__init__(driver)
   # labels
   self.modal_elem = selenium_utils.get_when_visible(
       self._driver, self._locators.MODAL_CSS)
   self.filter_toggle = base.Toggle(
       self.modal_elem, self._locators.FILTER_TOGGLE_CSS)
   self.filter_toggle.is_activated = True
   self.title_modal = base.Label(self.modal_elem, self._locators.MODAL_TITLE)
   if obj_name != objects.ASSESSMENT_TEMPLATES:
     self.obj_type = base.Label(self.modal_elem, self._locators.OBJ_TYPE)
   # user input elements
   self.tree_view = base.UnifiedMapperTreeView(
       self._driver, obj_name=obj_name)
   self._add_attr_btn = None
   self.search_result_toggle = base.Toggle(
       self.modal_elem, self._locators.RESULT_TOGGLE_CSS)
   self.close_btn = base.Button(self.modal_elem, self._locators.CLOSE_BTN_CSS)