'Ensures the user navigates to the course content page with the correct section and subsection.'

def _wait_for_course_section(self, section_title, subsection_title):

    courseware_page = CoursewarePage(self.browser, self.parent_page.course_id)
    courseware_page.wait_for_page()
    if self.parent_page.course_outline_page:
        courseware_page.nav.visit_course_outline_page()
    self.wait_for(promise_check_func=(lambda : courseware_page.nav.is_on_section(section_title, subsection_title)), description="Waiting    for    course    page    with    section    '{0}'    and    subsection    '{1}'".format(section_title, subsection_title))
