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/demo_ui/spinfield.py | |
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/demo_ui/spinfield.py')
-rw-r--r-- | uitest/demo_ui/spinfield.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/demo_ui/spinfield.py b/uitest/demo_ui/spinfield.py index c093cf5d4d7c..a36189afeb16 100644 --- a/uitest/demo_ui/spinfield.py +++ b/uitest/demo_ui/spinfield.py @@ -8,7 +8,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase -from uitest.uihelper.common import get_state_as_dict, type_text +from uitest.uihelper.common import get_state_as_dict, type_text, select_pos class SpinFieldTest(UITestCase): @@ -20,7 +20,7 @@ class SpinFieldTest(UITestCase): xCellsDlg = self.xUITest.getTopFocusWindow() # select the numbers tab page - xCellsDlg.executeAction("SELECT", mkPropertyValues({"POS": "0"})) + select_pos(xCellsDlg, "0") xDecimalPlaces = xCellsDlg.getChild("leadzerosed") xDecimalPlaces.executeAction("UP", tuple()) @@ -41,7 +41,7 @@ class SpinFieldTest(UITestCase): xCellsDlg = self.xUITest.getTopFocusWindow() # select the numbers tab page - xCellsDlg.executeAction("SELECT", mkPropertyValues({"POS": "0"})) + select_pos(xCellsDlg, "0") xDecimalPlaces = xCellsDlg.getChild("leadzerosed") xDecimalPlaces.executeAction("UP", tuple()) |