summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-20 12:44:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-20 12:50:08 +0100
commit66311a5ae72149167c7534d90825e35dc4a0e037 (patch)
tree308fab26cd0ae121ce3c8ee5f578d9aa6bd318f2 /uitest
parentf23a90ee6d64a7649c84957a892dec4faa2326d8 (diff)
uitest: we need the workaround for the race condition also for file loading
Change-Id: I6988cebc4c005b3e80c2b552fb66398cba036cd8
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py
index eb01911957ae..552071fd8699 100644
--- a/uitest/uitest/test.py
+++ b/uitest/uitest/test.py
@@ -48,6 +48,9 @@ class UITest(object):
time_ = 0
while time_ < 30:
if event.executed:
+ frames = self.get_frames()
+ if len(frames) == 1:
+ self.get_desktop().setActiveFrame(frames[0])
time.sleep(DEFAULT_SLEEP)
return component
time_ += DEFAULT_SLEEP