Kaydet (Commit) d6861b8f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add method to get the row object from a calc document

Change-Id: If24a995fe1e174d3ffc531021b290a455ae28512
Reviewed-on: https://gerrit.libreoffice.org/35729Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst ff387f84
......@@ -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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment