summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-11-03 15:39:35 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-04 13:17:44 +0100
commit01cbdcc6dd0cf575997e9899496115ac41ab4be1 (patch)
tree6e785918a2e75d0920bed318634e6d8540325f1b /uitest
parentc218614ffa95ec62c0a0ad31583282d287042890 (diff)
tdf#119206: sw: Add UItest
Change-Id: Iaf0e3be8a43eaaa4abb1efff9bc844ff38602d77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124654 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest/test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py
index 9a15671223b9..3beee0d274f2 100644
--- a/uitest/uitest/test.py
+++ b/uitest/uitest/test.py
@@ -159,7 +159,8 @@ class UITest(object):
try:
yield xDialog
finally:
- self.close_dialog_through_button(xDialog.getChild(close_button))
+ if close_button:
+ self.close_dialog_through_button(xDialog.getChild(close_button))
return
time_ += DEFAULT_SLEEP
time.sleep(DEFAULT_SLEEP)