Commit 0a9ef9c4 by Ben Patterson

Merge pull request #7935 from edx/benp/chromefix-csv-upload-wait

On faster browsers, we need to wait for the toggle option to appear.
parents f66c118d 314accdf
...@@ -446,8 +446,10 @@ class CohortManagementSection(PageObject): ...@@ -446,8 +446,10 @@ class CohortManagementSection(PageObject):
""" """
Uploads a file with cohort assignment information. Uploads a file with cohort assignment information.
""" """
# If the CSV upload section has not yet been toggled on, click on the toggle link. # Toggle on the CSV upload section.
cvs_upload_toggle = self.q(css=self._bounded_selector(".toggle-cohort-management-secondary")).first cvs_upload_toggle_css = '.toggle-cohort-management-secondary'
self.wait_for_element_visibility(cvs_upload_toggle_css, "Wait for csv upload link to appear")
cvs_upload_toggle = self.q(css=self._bounded_selector(cvs_upload_toggle_css)).first
if cvs_upload_toggle: if cvs_upload_toggle:
cvs_upload_toggle.click() cvs_upload_toggle.click()
self.wait_for_element_visibility( self.wait_for_element_visibility(
......
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