aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/shared/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/shared/utils.py')
-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 f115d7103f0..7e6b91a961f 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