diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-05 01:26:27 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:04 +0200 |
commit | 3c324ae604a90e22cae2189a8e7da0d275677206 (patch) | |
tree | 5fc05a89e714cd029834239e4b9700249aedae5c /uitest/calc_tests | |
parent | f8b9df71d773dcceae8136d4305e097755c7fbd7 (diff) |
uitest: add test for cell text input
Change-Id: Id7c907c14c8de4e61fddcd9cc25de7f1bfec4e85
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r-- | uitest/calc_tests/gridwindow.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/uitest/calc_tests/gridwindow.py b/uitest/calc_tests/gridwindow.py index b87aac816e1d..1bb0d382fc87 100644 --- a/uitest/calc_tests/gridwindow.py +++ b/uitest/calc_tests/gridwindow.py @@ -66,4 +66,23 @@ def extend_range(xContext): select2Props = mkPropertyValues({"RANGE": "D3:F5", "EXTEND": "true"}) xGridWindow.executeAction("SELECT", select2Props) +def input(xContext): + xUITest = xContext.ServiceManager.createInstanceWithContext( + "org.libreoffice.uitest.UITest", xContext) + + ui_test = UITest(xUITest, xContext) + + ui_test.create_doc_in_start_center("calc") + xTopWindow = xUITest.getTopFocusWindow() + + xGridWindow = xTopWindow.getChild("grid_window") + + time.sleep(2) + + selectProps = mkPropertyValues({"CELL": "C3"}) + xGridWindow.executeAction("SELECT", selectProps) + + typeProps = mkPropertyValues({"TEXT": "hello"}) + xGridWindow.executeAction("TYPE", typeProps) + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |