WL-399 Course Details List Fields

This commit is contained in:
asadiqbal
2016-04-20 20:44:11 +05:00
committed by Douglas Hall
parent a13e531042
commit 59f70cf85d
15 changed files with 645 additions and 20 deletions

View File

@@ -261,12 +261,15 @@ class SettingsPage(CoursePage):
# Return the joined path of the required asset.
return os.sep.join(folders_list_in_path)
def upload_image(self, image_selector, file_to_upload):
def upload_image(self, upload_btn_selector, file_to_upload):
"""
Upload image specified by image_selector and file_to_upload
"""
self.q(css=image_selector).results[0].click()
# wait for upload button
self.wait_for_element_presence(upload_btn_selector, 'upload button is present')
self.q(css=upload_btn_selector).results[0].click()
# wait for popup
self.wait_for_element_presence(self.upload_image_popup_window_selector, 'upload dialog is present')

View File

@@ -219,4 +219,6 @@ class AdvancedSettingsPage(CoursePage):
'enable_proctored_exams',
'enable_timed_exams',
'enable_subsection_gating',
'learning_info',
'instructor_info'
]