'clicks the stop this timed exam link'

def stop_timed_exam(self):

    self.q(css='.proctored_exam_status    button.exam-button-turn-in-exam').first.click()
    self.wait_for_element_absence('.proctored_exam_status    .exam-button-turn-in-exam', 'End    Exam    Button    gone')
    self.wait_for_element_presence("button[name='submit-proctored-exam']", 'Submit    Exam    Button')
    self.q(css="button[name='submit-proctored-exam']").first.click()
    self.wait_for_element_absence('.proctored_exam_status    .exam-timer', 'Timer    bar')
