summaryrefslogtreecommitdiff
path: root/tests/system/shared/qtquick.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/shared/qtquick.py')
-rw-r--r--tests/system/shared/qtquick.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/system/shared/qtquick.py b/tests/system/shared/qtquick.py
index 98b664bf0b..899bdeeda0 100644
--- a/tests/system/shared/qtquick.py
+++ b/tests/system/shared/qtquick.py
@@ -119,8 +119,11 @@ def runAndCloseQtQuickUI():
# the following is currently a work-around for not using hooking into subprocesses
if (waitForObject(":Qt Creator_Core::Internal::OutputPaneToggleButton").checked!=True):
clickButton(":Qt Creator_Core::Internal::OutputPaneToggleButton")
- clickButton(":Qt Creator.Stop_QToolButton")
+ stop = findObject(":Qt Creator.Stop_QToolButton")
+ waitFor("stop.enabled==True")
+ clickButton(stop)
if platform.system()=="Darwin":
+ waitFor("stop.enabled==False")
snooze(2)
nativeType("<Escape>")
return True