aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2024-04-05 00:07:27 +0200
committerRobert Löhning <robert.loehning@qt.io>2024-04-10 07:31:30 +0000
commit355e3ecdf853b05387bddf02dcc371bdcd41d32f (patch)
tree53ba63c17c4be3448b46a783ebc91e7ec33a8bf1 /tests
parent95df308bc315f353883dbd9f2c0a8f8ca806470d (diff)
SquishTests: Rename object
to avoid strange errors when trying to use object.exists() Change-Id: I919a7fe90e00daad2040b5e4f2c271de807aea16 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/shared/utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py
index f115d7103f..7e6b91a961 100644
--- a/tests/system/shared/utils.py
+++ b/tests/system/shared/utils.py
@@ -71,15 +71,15 @@ def verifyEnabled(objectSpec, expectedState = True):
# param itemName is the item to be selected in the combo box
# returns True if selection was changed or False if the wanted value was already selected
def selectFromCombo(objectSpec, itemName):
- object = verifyEnabled(objectSpec)
- if itemName == str(object.currentText):
+ comboObject = verifyEnabled(objectSpec)
+ if itemName == str(comboObject.currentText):
return False
else:
- mouseClick(object)
+ mouseClick(comboObject)
snooze(1)
# params required here
- mouseClick(waitForObjectItem(object, itemName.replace(".", "\\.")), 5, 5, 0, Qt.LeftButton)
- test.verify(waitFor("str(object.currentText)==itemName", 5000),
+ mouseClick(waitForObjectItem(comboObject, itemName.replace(".", "\\.")))
+ test.verify(waitFor("str(comboObject.currentText)==itemName", 5000),
"Switched combo item to '%s'" % itemName)
return True