diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-22 03:38:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-24 17:10:56 +0000 |
commit | 57e785e1cf52e422ac60cb259a2f53b696d3c4cc (patch) | |
tree | ff5adff271b61d0eb8e2c20839cf1a5a146ba47c /uitest/demo_ui/edit.py | |
parent | HasImageAtPos takes an id not a pos (diff) | |
download | core-57e785e1cf52e422ac60cb259a2f53b696d3c4cc.tar.gz core-57e785e1cf52e422ac60cb259a2f53b696d3c4cc.zip |
uitest: add a helper method for typing text
Change-Id: If450e3f0ff1e2a8f33db05e9512a13e5771115a8
Reviewed-on: https://gerrit.libreoffice.org/32406
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.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/uitest/demo_ui/edit.py b/uitest/demo_ui/edit.py index a40677c5d8ae..5eff4e0fad90 100644 --- a/uitest/demo_ui/edit.py +++ b/uitest/demo_ui/edit.py @@ -8,6 +8,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.framework import UITestCase +from uitest.uihelper.common import type_text class EditTest(UITestCase): @@ -20,9 +21,7 @@ class EditTest(UITestCase): xEdit = xAddNameDlg.getChild("edit") - props = {"TEXT": "simpleRangeName"} - actionProps = mkPropertyValues(props) - xEdit.executeAction("TYPE", actionProps) + type_text(xEdit, "simpleRangeName") xAddBtn = xAddNameDlg.getChild("cancel") xAddBtn.executeAction("CLICK", tuple()) |