From 5a92b4f98ea08a25afadf16f1cebdd0f70c0c548 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 19 Dec 2016 20:29:11 +0100 Subject: [PATCH] uitest: work around race condition when starting multiple soffice instances Change-Id: I45b57f6789a6156b7f70b39bac624bab55dc17ff --- uitest/uitest/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py index 4090a6062bc9..eb01911957ae 100644 --- a/uitest/uitest/test.py +++ b/uitest/uitest/test.py @@ -102,6 +102,9 @@ class UITest(object): time_ = 0 while time_ < 30: if event.executed: + frames = self.get_frames() + self.get_desktop().setActiveFrame(frames[0]) + print(len(frames)) return time_ += DEFAULT_SLEEP time.sleep(DEFAULT_SLEEP)