Simplify retry logic for ui helper functions

This commit is contained in:
Jay Zoldak
2013-09-04 09:28:30 -04:00
parent 50f190c55d
commit 2ff056df8c
17 changed files with 245 additions and 163 deletions

View File

@@ -101,6 +101,9 @@ def input_problem_answer(_, problem_type, correctness):
@step(u'I check a problem')
def check_problem(step):
# first scroll down so the loading mathjax button does not
# cover up the Check button
world.browser.execute_script("window.scrollTo(0,1024)")
world.css_click("input.check")