'Returns whether the "you have submitted your exam" message is present.
This being true implies "the exam contents and results are hidden".'

def has_submitted_exam_message(self):

    return self.q(css='div.proctored-exam.completed').visible
