diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-15 11:50:47 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-15 13:26:36 +0100 |
commit | 5fc6d68e9e125b00dc16600543e516bd15fb3a64 (patch) | |
tree | 9c08df351b173ec0a295c5f3f26da93a29d06f11 /uitest | |
parent | 30e474a7e5bba6cebb7b082abd7ae8dc8d8bf8b0 (diff) |
uitest: simplify code
Change-Id: Id3355be0e763217a4915b53d22220c30536415e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126852
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest/uihelper/common.py | 4 |
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") |