Wait for element visibility instead of AJAX.

This commit is contained in:
Eric Fischer
2016-03-09 15:37:12 -05:00
committed by Diana Huang
parent 90c864d418
commit 41e1e27df5

View File

@@ -39,5 +39,5 @@ class MatlabProblemPage(PageObject):
"""
Returns the text value of given class.
"""
self.wait_for_ajax()
self.wait_for_element_visibility(class_name, 'Grader message is visible')
return self.q(css=class_name).text