summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-03-01 14:30:27 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-03-24 21:10:26 +0100
commit54e99c0bdea45ee76fd5d10c9712e848a010ed39 (patch)
tree6bf2bdc1d4c6924a5fa9ddab3df805b5a2c2f3c2 /sw
parent618b38fb406dfc578c60f63d002ecc1cf912a901 (diff)
uitest: add prints to see the current dialog
See https://ci.libreoffice.org//job/lo_tb_master_linux_dbg/36931/consoleFull#-156104958948ce9c26-9d0a-43a8-83d8-c44f54920d59 I suspect it might fail because there is a dialog displayed Change-Id: Ia68b780d5a3881a6e555e6a4bc3086c6c9644749 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130793 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/uitest/writer_tests6/save_readonly_with_password.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests6/save_readonly_with_password.py b/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
index 5e6e8380345f..5593e852d7ed 100644
--- a/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
+++ b/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
@@ -10,6 +10,7 @@ from uitest.framework import UITestCase
from libreoffice.uno.propertyvalue import mkPropertyValues
from org.libreoffice.unotest import systemPathToFileUrl
from uitest.uihelper.common import select_by_text
+from uitest.uihelper.common import get_state_as_dict
from tempfile import TemporaryDirectory
import os.path
@@ -47,6 +48,9 @@ class save_readonly_with_password(UITestCase):
with self.ui_test.execute_dialog_through_action(xOk, "CLICK", close_button="save"):
pass
+ win = self.xUITest.getTopFocusWindow()
+ print(get_state_as_dict(win))
+ print(win.getChildren())
self.ui_test.wait_until_file_is_available(xFilePath)
with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as document: