'Add Certificate Exception for \'student\'.'

def add_certificate_exception(self, student, free_text_note):

    self.wait_for_element_visibility('#add-exception', 'Add    Exception    button    is    visible')
    self.get_selector('#certificate-exception').fill(student)
    self.get_selector('#notes').fill(free_text_note)
    self.get_selector('#add-exception').click()
    self.wait_for_ajax()
    self.wait_for((lambda : (student in self.get_selector('div.white-listed-students    table    tr:last-child    td').text)), description='Certificate    Exception    added    to    list')
