# Dash Testing examples

**URL:** <https://community.plotly.com/t/dash-testing-examples/53699>\
**Category:** Dash Python\
**Created:** [June 9, 2021, 6:02am UTC](https://community.plotly.com/t/dash-testing-examples/53699 "2021-06-09T06:02:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyck33](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nyck33](https://community.plotly.com/u/nyck33)\
**Post date:** [June 9, 2021, 6:02am UTC](https://community.plotly.com/t/dash-testing-examples/53699/1 "2021-06-09T06:02:10Z")

</div>

I wrote a simple test that passes copying some of what I saw in the first example at: [Dash Testing | Dash for Python Documentation | Plotly](https://dash.plotly.com/testing)

my test:

```auto
from dash.testing.application_runners import import_app

def test_one(dash_duo):
    app = import_app("tests.app")
    dash_duo.start_server(app)
    dash_duo.wait_for_text_to_equal("h2", "Needleman-Wunsch, Smith-Waterman and Entrez", timeout=4)
    #assert dash_duo.find_element("h3").text == "Objective"
    assert dash_duo.find_element("h3").text == "PAM BLOSUM + NCBI"
    assert dash_duo.get_logs() == [], "Browser console should contain no errors"
    #everything above passes

    dash_duo.wait_for_element("#parameters-link", timeout=4)
    dash_duo.multiple_click("#parameters-link", clicks=1)
    dash_duo.wait_for_text_to_equal("1. To access a sequence from NCBI using accession number, enter it here")
    assert dash_duo.find_element("#btn-email").text == "Store Email"
    #print('done')

    return None

```

But on the line:

```auto
dash_duo.wait_for_element("#parameters-link", timeout=4)
dash_duo.multiple_click("#parameters-link", clicks=1)

```

I am trying to click on a `dbc.Navlink` element to navigate to another page and I get:

```auto
E selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <a href="/entrez-parameters" class="nav-link" id="parameters-link">...</a> is not clickable at point (128, 396). Other element would receive the click: <div class="col-12">...</div>
E (Session info: chrome=91.0.4472.77)

```

This is all on the index page that looks like this: [bio\_pam\_blosum/app.py at main · nyck33/bio\_pam\_blosum · GitHub](https://github.com/nyck33/bio_pam_blosum/blob/main/app.py)

The element I am trying to click is in the sidebar

```auto
sidebar = html.Div(
    [
        html.H3("PAM BLOSUM + NCBI", className='display-4'),
        html.Hr(),
        html.P(
            "Choose page to display", className="lead"
        ),
        dbc.Nav(# todo: show res below params using callback and plots on plots
            [
                dbc.NavLink("Project Intro", href="/project-intro", id="intro-link"),
                dbc.NavLink("Entrez Search, Needleman-Wunsch, Smith-Waterman", href="/entrez-parameters", id="parameters-link"),
                dbc.NavLink("Blast", href="/blast", id="protein-blast"),
                dbc.NavLink("Alignment Chart", href="/plots", id="plots"),

            ],
            vertical=True,
            pills=True,
        ),
    ],
    style=SIDEBAR_STYLE,
)

```

I saw this: [selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable with Selenium and Python - Stack Overflow](https://stackoverflow.com/a/58378714/9481613)  
But don’t know what it’s recommending.
