'Open library page in LMS'

def _goto_library_block_page(self, block_id=None):

    self.courseware_page.visit()
    paragraphs = self.courseware_page.q(css='.course-content    p').results
    if (not paragraphs):
        course_home_page = CourseHomePage(self.browser, self.course_id)
        course_home_page.visit()
        course_home_page.outline.go_to_section_by_index(0, 0)
    block_id = (block_id if (block_id is not None) else self.lib_block.locator)
    self.library_content_page = LibraryContentXBlockWrapper(self.browser, block_id)
    self.library_content_page.wait_for_page()
