Add a small delay to waiting for animations to cope with async threads sometimes misbehaving.

This commit is contained in:
Tom Price
2015-09-09 13:09:13 +01:00
parent 79438fd13b
commit 0402dd44b2

View File

@@ -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
if finished:
import time
time.sleep(0.1)
return finished