Add wait for upload form.

This is necessary for automation using chrome. TE-849
This commit is contained in:
Ben Patterson
2015-05-05 08:13:18 -04:00
parent bfb201ec7d
commit 6a0787de61

View File

@@ -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)