'Wait for a success message to be visible, then return it.'

def wait_for_success(self):

    def _check_func():
        'Return    success    status    and    any    errors    that    occurred.'
        success = self.success
        return (bool(success), success)
    return Promise(_check_func, 'Success    message    is    visible').fulfill()
