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>
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user