'Fill in the form with the provided ccx name and submit it.'

def fill_ccx_name_text_box(self, ccx_name):

    ccx_name_selector = '#ccx_name'
    create_ccx_button = '#create-ccx'
    self.wait_for_element_visibility(ccx_name_selector, 'CCX    name    field    is    visible')
    self.q(css=ccx_name_selector).fill(ccx_name)
    EmptyPromise((lambda : self.q(css=create_ccx_button).present), 'Create    a    new    Custom    Course    for    edX').fulfill()
    self.q(css=create_ccx_button).click()
