summaryrefslogtreecommitdiffstats
path: root/uitest/demo_ui/listbox.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-22 03:58:26 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-24 17:12:38 +0000
commit85a1dda8ef9d5970adf881dca2bf9d1a652f7245 (patch)
treeb322ef90f81127f1c96e06dc76459778ed1ba99f /uitest/demo_ui/listbox.py
parentuitest: add a helper method for typing text (diff)
downloadcore-85a1dda8ef9d5970adf881dca2bf9d1a652f7245.tar.gz
core-85a1dda8ef9d5970adf881dca2bf9d1a652f7245.zip
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/listbox.py')
-rw-r--r--uitest/demo_ui/listbox.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/uitest/demo_ui/listbox.py b/uitest/demo_ui/listbox.py
index 5c56c1014a23..15bd8ab133d9 100644
--- a/uitest/demo_ui/listbox.py
+++ b/uitest/demo_ui/listbox.py
@@ -8,6 +8,7 @@
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.framework import UITestCase
+from uitest.uihelper.common import select_pos
class ListBoxTest(UITestCase):
@@ -19,9 +20,7 @@ class ListBoxTest(UITestCase):
xCellsDlg = self.xUITest.getTopFocusWindow()
categoryLB = xCellsDlg.getChild("categorylb")
- props = {"POS": "4"}
- actionProps = mkPropertyValues(props)
- categoryLB.executeAction("SELECT", actionProps)
+ select_pos(categoryLB, "4")
xOkBtn = xCellsDlg.getChild("ok")
xOkBtn.executeAction("CLICK", tuple())