diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-22 03:58:26 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-24 17:12:38 +0000 |
commit | 85a1dda8ef9d5970adf881dca2bf9d1a652f7245 (patch) | |
tree | b322ef90f81127f1c96e06dc76459778ed1ba99f /uitest/calc_tests | |
parent | 57e785e1cf52e422ac60cb259a2f53b696d3c4cc (diff) |
uitest: write a helper method for selecting based on position
Change-Id: Ia7c4450f83a5a7cebd9d518c9ccac1ce07045570
Reviewed-on: https://gerrit.libreoffice.org/32407
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r-- | uitest/calc_tests/create_range_name.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/uitest/calc_tests/create_range_name.py b/uitest/calc_tests/create_range_name.py index 5f3b8c381d61..1ab7805bf970 100644 --- a/uitest/calc_tests/create_range_name.py +++ b/uitest/calc_tests/create_range_name.py @@ -8,7 +8,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase -from uitest.uihelper.common import type_text +from uitest.uihelper.common import type_text, select_pos class CreateRangeNameTest(UITestCase): @@ -40,9 +40,7 @@ class CreateRangeNameTest(UITestCase): type_text(xEdit, "simpleRangeName") xScope = xAddNameDlg.getChild("scope") - props = {"POS": "1"} - scopeProps = mkPropertyValues(props) - xScope.executeAction("SELECT", scopeProps) + select_pos(xScope, "1") xAddBtn = xAddNameDlg.getChild("add") xAddBtn.executeAction("CLICK", tuple()) |