def test_links(driver):
    (driver, wait, url) = driver
    links = ['/jupyter/', '/katib/', '/pipeline/#/experiments', '/pipeline/#/pipelines', '/pipeline/#/runs', '/pipeline/#/recurringruns', '/volumes/', '/tensorboards/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', f"iframe-link[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))
    links = ['/pipeline/', '/pipeline/#/runs', '/jupyter/new?namespace=kubeflow', '/katib/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', 'dashboard-view', f"iframe-link[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))
    links = ['https://charmed-kubeflow.io/docs/kubeflow-basics', 'https://microk8s.io/docs/addon-kubeflow', 'https://www.kubeflow.org/docs/started/requirements/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', 'dashboard-view', f"a[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))
def test_links(driver):
    (driver, wait, url) = driver
    links = ['/jupyter/', '/katib/', '/pipeline/#/experiments', '/pipeline/#/pipelines', '/pipeline/#/runs', '/pipeline/#/recurringruns', '/volumes/', '/tensorboards/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', f"iframe-link[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))
    links = ['/pipeline/', '/pipeline/#/runs', '/jupyter/new?namespace=kubeflow', '/katib/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', 'dashboard-view', f"iframe-link[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))
    links = ['https://charmed-kubeflow.io/docs/kubeflow-basics', 'https://microk8s.io/docs/addon-kubeflow', 'https://www.kubeflow.org/docs/started/requirements/']
    for link in links:
        print(('Looking for link: %s' % link))
        script = fix_queryselector(['main-page', 'dashboard-view', f"a[href='{link}']"])
        wait.until((lambda x: x.execute_script(script)))