summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-21 17:14:18 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-22 01:17:44 +0100
commit8c286ace812898690244556d2c2a348e5174a2ad (patch)
treef02914f8101998354f8add78756539b29fde10ba /uitest
parent0257f7638b266302af1fb5f8afa8c13a745d3da8 (diff)
uitest: add helper method to get XCell from UNO
Change-Id: I1600a1e5d79b100a6469d9fa52c67e9e374258a2
Diffstat (limited to 'uitest')
-rw-r--r--uitest/libreoffice/calc/document.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/libreoffice/calc/document.py b/uitest/libreoffice/calc/document.py
index eea8d650df9b..a75324299575 100644
--- a/uitest/libreoffice/calc/document.py
+++ b/uitest/libreoffice/calc/document.py
@@ -8,4 +8,8 @@
def get_sheet_from_doc(document, index):
return document.getSheets().getByIndex(index)
+def get_cell_by_position(document, tab, column, row):
+ sheet = get_sheet_from_doc(document, tab)
+ return sheet.getCellByPosition(column, row)
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: