summaryrefslogtreecommitdiff
path: root/uitest/demo_ui/spinfield.py
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/demo_ui/spinfield.py')
-rw-r--r--uitest/demo_ui/spinfield.py6
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())