'Wait for a field to appear in DOM.'

def wait_for_field(self, field_id):

    EmptyPromise((lambda : (self.field(field_id) is not None)), 'Field    with    id    "{0}"    is    in    DOM.'.format(field_id)).fulfill()
