From 0402dd44b22d59643ff0ea96d7b517b2bf6e0250 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Wed, 9 Sep 2015 13:09:13 +0100 Subject: [PATCH] Add a small delay to waiting for animations to cope with async threads sometimes misbehaving. --- RIGS/test_functional.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RIGS/test_functional.py b/RIGS/test_functional.py index 9cf38f2f..d17a9bd2 100644 --- a/RIGS/test_functional.py +++ b/RIGS/test_functional.py @@ -862,4 +862,7 @@ class animation_is_finished(object): def __call__(self, driver): numberAnimating = driver.execute_script('return $(":animated").length') finished = numberAnimating == 0 - return finished \ No newline at end of file + if finished: + import time + time.sleep(0.1) + return finished