diff --git a/lms/djangoapps/instructor/features/data_download.py b/lms/djangoapps/instructor/features/data_download.py index df085a4f1b9e..966dfd348cb7 100644 --- a/lms/djangoapps/instructor/features/data_download.py +++ b/lms/djangoapps/instructor/features/data_download.py @@ -15,6 +15,10 @@ def find_student_profile_table(step): # pylint: disable=unused-argument # Find the grading configuration display world.wait_for_visible('#data-student-profiles-table') + + # Wait for the data table to be populated + world.wait_for(lambda _: world.css_text('#data-student-profiles-table') not in [u'', u'Loading...']) + if world.role == 'instructor': expected_data = [ world.instructor.username,