Exemple #1
0
 def __init__(self, driver, info_widget_cls, obj_name):
   super(TreeView, self).__init__(driver, obj_name)
   self.info_widget_cls = info_widget_cls
   self.obj_name = obj_name
   self.create_obj_cls = factory.get_cls_create_obj(object_name=obj_name)
   self.dropdown_settings_cls = factory.get_cls_3bbs_dropdown_settings(
       object_name=obj_name, is_tree_view_not_info=True)
   self.dropdown_tree_view_item_cls = factory.get_cls_dropdown_tree_view_item(
       object_name=obj_name)
   self.fields_to_set = factory.get_fields_to_set(object_name=obj_name)
   self.locator_set_visible_fields = self._locators.SHOW_FIELDS_BTN_CSS
 def __init__(self, driver, info_widget_cls, obj_name, is_under_audit):
   super(TreeView, self).__init__(driver, obj_name=obj_name)
   self.info_widget_cls = info_widget_cls
   self.obj_name = obj_name
   self.is_under_audit = is_under_audit
   self.create_obj_cls = factory.get_cls_create_obj(object_name=obj_name)
   self.dropdown_settings_cls = factory.get_cls_3bbs_dropdown_settings(
       object_name=obj_name, is_tree_view_not_info=True)
   self.fields_to_set = factory.get_fields_to_set(object_name=obj_name)
   self.locator_set_visible_fields = (
       By.CSS_SELECTOR,
       self._locators.BUTTON_SHOW_FIELDS.format(self.widget_name))
Exemple #3
0
 def __init__(self, driver, info_widget_cls, obj_name):
     super(TreeView, self).__init__(driver, obj_name)
     self.info_widget_cls = info_widget_cls
     self.obj_name = obj_name
     self.create_obj_cls = factory.get_cls_create_obj(object_name=obj_name)
     self.dropdown_settings_cls = factory.get_cls_3bbs_dropdown_settings(
         object_name=obj_name, is_tree_view_not_info=True)
     self.dropdown_tree_view_item_cls = factory.get_cls_dropdown_tree_view_item(
         object_name=obj_name)
     self.fields_to_set = factory.get_fields_to_set(object_name=obj_name)
     self.locator_set_visible_fields = self._locators.SHOW_FIELDS_BTN_CSS
     selenium_utils.wait_until_not_present(self._driver,
                                           locator.Common.SPINNER_CSS)