summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-26 22:48:26 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-27 00:51:38 +0000
commitd6861b8f38db9dc465f344474943b9477dd22a0c (patch)
tree4e5b181a9c56e8b3f27f56a84f742e750459deae
parentff387f848d1695535ad33de6eef2577bcd91c9d0 (diff)
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@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--uitest/libreoffice/calc/document.py11
1 files changed, 11 insertions, 0 deletions
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: