Files
edx-platform/common/test/acceptance/pages/lms/dashboard.py
2021-03-09 18:03:34 +05:00

26 lines
551 B
Python

"""
Student dashboard page.
"""
from bok_choy.page_object import PageObject
from common.test.acceptance.pages.lms import BASE_URL
class DashboardPage(PageObject):
"""
Student dashboard, where the student can view
courses she/he has registered for.
"""
url = f"{BASE_URL}/dashboard"
def is_browser_on_page(self):
return self.q(css='.my-courses').present
def get_courses(self):
"""
Get all courses shown in the dashboard
"""
return self.q(css='ul.listing-courses .course-item')