def METHOD_NAME(browser):
    try:
        ele1 = browser.find_element_by_id('flashMessageArea')
    except NoSuchElementException:
        ele1 = None
    if ele1 != None:
        ele2 = ele1.find_element_by_class_name('flash_message')
        if ele2 != None and ele2.text != None and len(ele2.text) > 0:
            return ele2.text
        else:
            return ''
    else:
        return ''