summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-04-07 20:01:44 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-04-07 21:05:45 +0200
commitdbd06d22ad3c1db87ed210092d6a54fbb5c5000a (patch)
tree3d3b4b99ff59c298936c1da8aaef97ade43be9dd /uitest
parentadb05e2d256ee8cfcba1ded92e650c42ea0fb021 (diff)
uitest: factor out common code
Change-Id: I4ca17db1ff7221290fedb94700bfb2257e9c647e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113749 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/libreoffice/calc/document.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/uitest/libreoffice/calc/document.py b/uitest/libreoffice/calc/document.py
index c4eac000ae67..40a2ec635e3c 100644
--- a/uitest/libreoffice/calc/document.py
+++ b/uitest/libreoffice/calc/document.py
@@ -48,4 +48,16 @@ def get_row(document, row, tab = 0):
sheet = get_sheet_from_doc(document, tab)
return sheet.getRows().getByIndex(row)
+def is_row_hidden(document, row, tab = 0):
+ """ Check whether a row object is hidden
+
+ Keyword arguments:
+ document -- The document that should be used
+ tab -- The 0-based sheet number
+ column -- The 0-based row number
+ """
+ xRow = get_row(document, row, tab)
+ bVisible = xRow.getPropertyValue("IsVisible")
+ return not bVisible
+
# vim: set shiftwidth=4 softtabstop=4 expandtab: