コード例 #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)
コード例 #2
0
def open_obj(obj):
    """Opens the url of obj."""
    selenium_utils.open_url(entity_operations.obj_url(obj))
コード例 #3
0
ファイル: ui_facade.py プロジェクト: alekseev-aa/ggrc-core
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)
コード例 #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)
コード例 #5
0
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))
コード例 #6
0
def open_obj(obj):
  """Opens the url of obj."""
  selenium_utils.open_url(entity_operations.obj_url(obj))