summaryrefslogtreecommitdiff
path: root/uitest/uitest
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/uitest
parent57e785e1cf52e422ac60cb259a2f53b696d3c4cc (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/uitest')
-rw-r--r--uitest/uitest/uihelper/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/uitest/uitest/uihelper/common.py b/uitest/uitest/uihelper/common.py
index b05bec7167f6..a83230b5a723 100644
--- a/uitest/uitest/uihelper/common.py
+++ b/uitest/uitest/uihelper/common.py
@@ -13,4 +13,7 @@ def get_state_as_dict(ui_object):
def type_text(ui_object, text):
ui_object.executeAction("TYPE", mkPropertyValues({"TEXT": text}))
+def select_pos(ui_object, pos):
+ ui_object.executeAction("SELECT", mkPropertyValues({"POS": pos}))
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: