summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/uihelper/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/uitest/uitest/uihelper/common.py b/uitest/uitest/uihelper/common.py
index c1269038e523..2ae70399dfb1 100644
--- a/uitest/uitest/uihelper/common.py
+++ b/uitest/uitest/uihelper/common.py
@@ -48,9 +48,7 @@ def change_measurement_unit(UITestCase, unit):
elif 'units' in xDialogOpt.getChildren():
xUnit = xDialogOpt.getChild("units")
- props = {"TEXT": unit}
- actionProps = mkPropertyValues(props)
- xUnit.executeAction("SELECT", actionProps)
+ select_by_text(xUnit, unit)
# tdf#137930: Check apply button doesn't reset the value
xApplyBtn = xDialogOpt.getChild("apply")