Ejemplo n.º 1
0
 def add_and_map_obj_widget(self, obj):
     """Adds widget of selected type and
 click `Create and map new object` link and
 returns modal object for selected object type."""
     widget_bar.Programs().add_widget()
     dashboard.CreateObjectDropdown().click_item_by_text(
         text=objects.get_normal_form(obj))
     obj_modal = unified_mapper.CommonUnifiedMapperModal(
         self.driver, obj).click_create_and_map_obj()
     return obj_modal
Ejemplo n.º 2
0
 def click_add_tab_btn(self):
     """Clicks 'Add Tab' button."""
     self.add_tab_btn.click()
     return dashboard.CreateObjectDropdown()
Ejemplo n.º 3
0
 def click_add_tab_btn(self):
   """Clicks 'Add Tab' button."""
   self._browser.element(data_test_id="button_widget_add_2c925d94").click()
   return dashboard.CreateObjectDropdown()