summaryrefslogtreecommitdiff
path: root/uitest/calc_tests
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-05 00:59:55 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:01 +0200
commit7edc59d748dcc2b572f11e9c067e44b2886affb3 (patch)
treee1fd022cc47553cf56291a852c07a8344e65fe44 /uitest/calc_tests
parentac78b8f9f1d326c2d6bae6cf14ebcffaac47c605 (diff)
uitest: add example for extending the cell range
Change-Id: I983b7e2220efc86a021d81618f2db56194fe1ebc
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r--uitest/calc_tests/gridwindow.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/uitest/calc_tests/gridwindow.py b/uitest/calc_tests/gridwindow.py
index 4f9bcb573a56..4cf27a42760e 100644
--- a/uitest/calc_tests/gridwindow.py
+++ b/uitest/calc_tests/gridwindow.py
@@ -48,11 +48,30 @@ def select_range(xContext):
xGridWindow = xTopWindow.getChild("grid_window")
- time.sleep(1)
-
selectProps = mkPropertyValues({"RANGE": "B10:C20"})
xGridWindow.executeAction("SELECT", selectProps)
time.sleep(20)
+def extend_range(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")
+
+ selectProps = mkPropertyValues({"RANGE": "B10:C20"})
+ xGridWindow.executeAction("SELECT", selectProps)
+
+ time.sleep(5)
+
+ select2Props = mkPropertyValues({"RANGE": "D3:F5", "EXTEND": "true"})
+ xGridWindow.executeAction("SELECT", select2Props)
+
+ time.sleep(5)
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: */