summaryrefslogtreecommitdiff
path: root/uitest/uitest/uihelper/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/uitest/uihelper/common.py')
-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 a83230b5a723..5056ef764983 100644
--- a/uitest/uitest/uihelper/common.py
+++ b/uitest/uitest/uihelper/common.py
@@ -16,4 +16,7 @@ def type_text(ui_object, text):
def select_pos(ui_object, pos):
ui_object.executeAction("SELECT", mkPropertyValues({"POS": pos}))
+def select_text(ui_object, from_pos, to):
+ ui_object.executeAction("SELECT", mkPropertyValues({"FROM": from_pos, "TO": to}))
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: