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

uitest: add method to get the column object from a spreadsheet doc

Change-Id: I594779ad7b3fe97a1055ad9c999fe6be126875fb
üst 21cc5084
......@@ -26,4 +26,15 @@ def get_cell_by_position(document, tab, column, row):
sheet = get_sheet_from_doc(document, tab)
return sheet.getCellByPosition(column, row)
def get_column(document, column, tab = 0):
""" Get the column object through the column index
Keyword arguments:
document -- The document that should be used
tab -- The 0-based sheet number
column -- The 0-based column number
sheet = get_sheet_from_doc(document, tab)
return sheet.getColumns().getByIndex(column)
# 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