def METHOD_NAME(session_browser):
    browser = session_browser.with_(timeout=0.1)
    GivenPage(browser.driver).opened_with_body(
        '''
        <ul>Hello:
           <li>Alex</li>
           <li> Yakov \n</li>
        </ul>
        '''
    )
    with pytest.raises(TimeoutException) as error:
        browser.all('li').should(have.texts('Alex'))
    assert "has texts ('Alex',)" in error.value.msg
    assert "AssertionError: actual visible_texts: ['Alex', 'Yakov']" in error.value.msg