'Fill in the form with the provided email and submit it.'

def fill_enrollment_batch_text_box(self, email):

    email_selector = '{}    textarea'.format(self.batch_enrollment_selector)
    enrollment_button = "{}    .enrollment-button[data-action='enroll']".format(self.batch_enrollment_selector)
    self.wait_for_element_visibility(email_selector, 'Email    field    is    visible')
    self.q(css=email_selector).fill(email)
    EmptyPromise((lambda : self.q(css=enrollment_button).present), 'Enrollment    button').fulfill()
    self.q(css=enrollment_button).click()
