From f1c5b1e78d6ea6cdd809419c4d2a89bfbc40e9fc Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 22 Aug 2012 13:56:44 +0200 Subject: [PATCH] Squish: Fix __configureCustomExecutable__() Change-Id: I76ebec620ece569b895f381e9b35f3b257fe4852 Reviewed-by: Robert Loehning --- tests/system/shared/hook_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/hook_utils.py b/tests/system/shared/hook_utils.py index cd73dfaaa3a..30a1a87a47f 100644 --- a/tests/system/shared/hook_utils.py +++ b/tests/system/shared/hook_utils.py @@ -219,7 +219,10 @@ def __configureCustomExecutable__(projectName, port, mkspec, qmakeVersion): test.warning("Configured Squish directory seems to be missing - using fallback without hooking into subprocess.", "Failed to find '%s'" % startAUT) return False - addButton = waitForObject("{window=':Qt Creator_Core::Internal::MainWindow' occurrence='2' text='Add' type='QPushButton' unnamed='1' visible='1'}") + addButton = waitForObject("{container={window=':Qt Creator_Core::Internal::MainWindow' " + "type='ProjectExplorer::Internal::RunSettingsWidget' unnamed='1' " + "visible='1'} occurrence='2' text='Add' type='QPushButton' " + "unnamed='1' visible='1'}") clickButton(addButton) addMenu = addButton.menu() activateItem(waitForObjectItem(objectMap.realName(addMenu), 'Custom Executable'))