summaryrefslogtreecommitdiffstats
path: root/uitest/demo_ui/edit.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-01-07 20:07:42 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-01-08 00:58:06 +0100
commitdbf83d315acc454b576355f2e5bd8412586827ac (patch)
tree99172b84e92dc4b9111f8f67ccf573870e293173 /uitest/demo_ui/edit.py
parentsupport exporting of hatch for chart background, tdf#114180 (diff)
downloadcore-dbf83d315acc454b576355f2e5bd8412586827ac.tar.gz
core-dbf83d315acc454b576355f2e5bd8412586827ac.zip
uitest: add a shared helper method for selecting text
Change-Id: I15d059ea51ec1e7f0923dab5326a9bb8433e664c Reviewed-on: https://gerrit.libreoffice.org/47550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/demo_ui/edit.py')
-rw-r--r--uitest/demo_ui/edit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uitest/demo_ui/edit.py b/uitest/demo_ui/edit.py
index 6da14333a4d5..48ada3b1d15e 100644
--- a/uitest/demo_ui/edit.py
+++ b/uitest/demo_ui/edit.py
@@ -8,7 +8,7 @@
from libreoffice.uno.propertyvalue import mkPropertyValues
from uitest.framework import UITestCase
-from uitest.uihelper.common import type_text, get_state_as_dict
+from uitest.uihelper.common import type_text, get_state_as_dict, select_text
import time
@@ -44,7 +44,7 @@ class EditTest(UITestCase):
type_text(xEdit, "otherChars")
self.assertEqual("siotherCharsgeName", get_state_as_dict(xEdit)["Text"])
- xEdit.executeAction("SELECT", mkPropertyValues({"FROM": "2", "TO": "12"}))
+ select_text(xEdit, from_pos="2", to="12")
self.assertEqual("otherChars", get_state_as_dict(xEdit)["SelectedText"])
xAddBtn = xAddNameDlg.getChild("cancel")