'Complete Course Problems.
Problems were added in the setUp'

def complete_course_problems(self):

    self.course_home_page.visit()
    self.course_home_page.outline.go_to_section('Test    Section', 'Test    Subsection')
    self.courseware_page.nav.go_to_vertical('Test    Problem    1')
    self.courseware_page.q(css='select    option[value="{}"]'.format('blue')).first.click()
    self.courseware_page.q(css='fieldset    div.field:nth-child(4)    input').nth(0).click()
    self.courseware_page.q(css='fieldset    div.field:nth-child(2)    input').nth(1).click()
    self.courseware_page.q(css='fieldset    div.field:nth-child(4)    input').nth(1).click()
    self.courseware_page.q(css='button.submit').click()
    self.courseware_page.wait_for_ajax()
    self.course_home_page.visit()
    self.course_home_page.outline.go_to_section('Test    Section    2', 'Test    Subsection    2')
    self.courseware_page.nav.go_to_vertical('Test    Problem    2')
    self.courseware_page.q(css='input[id^=input_][id$=_2_1]').fill('A*x^2    +    sqrt(y)')
    self.courseware_page.q(css='button.submit').click()
    self.courseware_page.wait_for_ajax()
