Esempio n. 1
0
def obj_tab_url(app_obj, url_fragment):
    """Returns an url to the object tab that corresponds to `url_fragment`
  of object `app_obj`.
  """
    obj_url = entity_operations.obj_url(app_obj)
    return "{}#!{}".format(obj_url, url_fragment)
Esempio n. 2
0
def open_obj(obj):
    """Opens the url of obj."""
    selenium_utils.open_url(entity_operations.obj_url(obj))
Esempio n. 3
0
def get_obj(app_obj):
  """Opens the url of `app_obj`, builds the object from the page and
  returns it.
  """
  selenium_utils.open_url(entity_operations.obj_url(app_obj))
  return internal_ui_operations.build_obj(app_obj)
Esempio n. 4
0
def obj_tab_url(app_obj, url_fragment):
  """Returns an url to the object tab that corresponds to `url_fragment`
  of object `app_obj`.
  """
  obj_url = entity_operations.obj_url(app_obj)
  return "{}#!{}".format(obj_url, url_fragment)
def open_obj_tab_url(obj, obj_tab):
    """Returns an url to the `obj_tab` of `obj`."""
    tab_hash = {"Setup": "task_group"}[obj_tab]
    obj_url = entity_operations.obj_url(obj)
    selenium_utils.open_url("{}#!{}".format(obj_url, tab_hash))
Esempio n. 6
0
def open_obj(obj):
  """Opens the url of obj."""
  selenium_utils.open_url(entity_operations.obj_url(obj))