Commit 6a0787de by Ben Patterson

Add wait for upload form.

This is necessary for automation using chrome. TE-849
parent bfb201ec
......@@ -450,6 +450,10 @@ class CohortManagementSection(PageObject):
cvs_upload_toggle = self.q(css=self._bounded_selector(".toggle-cohort-management-secondary")).first
if cvs_upload_toggle:
cvs_upload_toggle.click()
self.wait_for_element_visibility(
self._bounded_selector(self.csv_browse_button_selector_css),
'File upload link visible'
)
path = InstructorDashboardPage.get_asset_path(filename)
file_input = self.q(css=self._bounded_selector(self.csv_browse_button_selector_css)).results[0]
file_input.send_keys(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment