Example #1
0
def dashboards():
    """Returns a generator that iterates through the available dashboards"""
    sel.force_navigate("dashboard")
    # We have to click any other of the tabs (glitch)
    # Otherwise the first one is not displayed (O_O)
    tabstrip.select_tab(tabstrip.get_all_tabs()[-1])
    for dashboard_name in tabstrip.get_all_tabs():
        tabstrip.select_tab(dashboard_name)
        yield dashboard_name
Example #2
0
def dashboards():
    """Returns a generator that iterates through the available dashboards"""
    sel.force_navigate("dashboard")
    # We have to click any other of the tabs (glitch)
    # Otherwise the first one is not displayed (O_O)
    tabstrip.select_tab(tabstrip.get_all_tabs()[-1])
    for dashboard_name in tabstrip.get_all_tabs():
        tabstrip.select_tab(dashboard_name)
        yield dashboard_name