[Libreoffice-commits] core.git: uitest/libreoffice
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Mar 27 00:52:00 UTC 2017
uitest/libreoffice/calc/document.py | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit d6861b8f38db9dc465f344474943b9477dd22a0c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Mar 26 22:48:26 2017 +0200
uitest: add method to get the row object from a calc document
Change-Id: If24a995fe1e174d3ffc531021b290a455ae28512
Reviewed-on: https://gerrit.libreoffice.org/35729
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/uitest/libreoffice/calc/document.py b/uitest/libreoffice/calc/document.py
index a251f29b2490..9f722839d43e 100644
--- a/uitest/libreoffice/calc/document.py
+++ b/uitest/libreoffice/calc/document.py
@@ -37,4 +37,15 @@ def get_column(document, column, tab = 0):
sheet = get_sheet_from_doc(document, tab)
return sheet.getColumns().getByIndex(column)
+def get_row(document, row, tab = 0):
+ """ Get the row object through the row index
+
+ Keyword arguments:
+ document -- The document that should be used
+ tab -- The 0-based sheet number
+ column -- The 0-based row number
+ """
+ sheet = get_sheet_from_doc(document, tab)
+ return sheet.getRows().getByIndex(row)
+
# vim: set shiftwidth=4 softtabstop=4 expandtab:
More information about the Libreoffice-commits
mailing list