find_courses.py 544 Bytes
Newer Older
1 2 3 4
"""
Find courses page (main page of the LMS).
"""

5
from bok_choy.page_object import PageObject
6

7
from common.test.acceptance.pages.lms import BASE_URL
8 9 10 11 12 13 14


class FindCoursesPage(PageObject):
    """
    Find courses page (main page of the LMS).
    """

15
    url = BASE_URL
16 17

    def is_browser_on_page(self):
18
        return "edX" in self.browser.title
19

20
    @property
21 22 23 24 25
    def course_id_list(self):
        """
        Retrieve the list of available course IDs
        on the page.
        """
26 27

        return self.q(css='article.course').attrs('id')