'Wait for a message to appear in a field.'

def wait_for_message(self, field_id, message):

    EmptyPromise((lambda : (message in (self.message_for_field(field_id) or ''))), 'Messsage    "{0}"    is    visible.'.format(message)).fulfill()
