From 57e785e1cf52e422ac60cb259a2f53b696d3c4cc Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 22 Dec 2016 03:38:34 +0100 Subject: uitest: add a helper method for typing text Change-Id: If450e3f0ff1e2a8f33db05e9512a13e5771115a8 Reviewed-on: https://gerrit.libreoffice.org/32406 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- uitest/demo_ui/edit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'uitest/demo_ui/edit.py') 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()) -- cgit