def METHOD_NAME(session_browser):
    browser = session_browser.with_(timeout=0.25)
    page = GivenPage(browser.driver)
    page.opened_with_body(
        '''
        <a href='#second' style='display:none'>go to Heading 2</a>
        <h2 id='second'>Heading 2</h2>'''
    ).execute_script_with_timeout(
        'document.getElementsByTagName("a")[0].style = "display:block";', 0.5
    )
    with pytest.raises(TimeoutException):
        browser.all('a').element_by(have.exact_text('go to Heading 2')).click()
    assert "second" not in session_browser.driver.current_url