'Submit the new textbook form and check if it is rendered properly.'

def click_textbook_submit_button(self):

    self.wait_for_element_visibility('#edit_textbook_form    button[type="submit"]', 'Save    button    visibility')
    self.q(css='#edit_textbook_form    button[type="submit"]').first.click()
    self.wait_for_element_absence('.wrapper-form', 'Add/Edit    form    closed')
