def METHOD_NAME():
    """
    with default rendering (built into selene's condition) of error message on failure
    and simplified syntax with lambdas
    AND with optimised performance and removed potential side effects of "nested waiting"
    """
    browser.open('https://the-internet.herokuapp.com/notification_message_rendered')
    browser.wait.for_(
        lambda _: (
            browser.element('[href*=notification_message]')().click(),
            have.exact_text('Action successful\n×')(browser.element('#flash')),
        )
    )
    '''
    notice how we called `().click()` instead of `.click()` on notification element
    extra parenthesis allows to get actual webelement
    that has not implicit waiting for click to be passed
    by this - we ensure that there will be no nested waiting
    in addition to "outher" `browser.wait.for`
    '''