Esempio n. 1
0
def create_obj_via_lhn(driver, object_name):
    """Create object via LHN."""
    modal = get_lhn_accordion(driver, object_name).create_new()
    factory.get_cls_test_utils(object_name).enter_test_data(modal)
    modal.save_and_close()
    object_name = object_name + "InfoWidget"
    return factory.get_cls_widget(object_name, is_info=True)(driver)
Esempio n. 2
0
def create_obj_via_lhn(driver, object_name):
  """Create object via LHN."""
  modal = get_lhn_accordion(driver, object_name).create_new()
  factory.get_cls_test_utils(object_name).enter_test_data(modal)
  modal.save_and_close()
  return factory.get_cls_widget(object_name, is_info=True)(driver)