mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 01:12:16 +00:00
Add a small delay to waiting for animations to cope with async threads sometimes misbehaving.
This commit is contained in:
@@ -862,4 +862,7 @@ class animation_is_finished(object):
|
|||||||
def __call__(self, driver):
|
def __call__(self, driver):
|
||||||
numberAnimating = driver.execute_script('return $(":animated").length')
|
numberAnimating = driver.execute_script('return $(":animated").length')
|
||||||
finished = numberAnimating == 0
|
finished = numberAnimating == 0
|
||||||
return finished
|
if finished:
|
||||||
|
import time
|
||||||
|
time.sleep(0.1)
|
||||||
|
return finished
|
||||||
|
|||||||
Reference in New Issue
Block a user