diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-09-12 21:13:00 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-09-13 10:37:55 +0200 |
commit | 714278ce47692d57965b06e8b83de632e6e97d2d (patch) | |
tree | 0303b88c76abdba5c2d16bacc21aef94a22df831 /uitest/demo_ui/tabcontrol.py | |
parent | 1301d8461ec5112ad8bc672dd1ac141238a29cef (diff) |
uitest: guard the remaining execute_modeless_dialog_through_command
Change-Id: I239fe94cc8983e679c82aa43d74d8099b13e73b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122011
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest/demo_ui/tabcontrol.py')
-rw-r--r-- | uitest/demo_ui/tabcontrol.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/uitest/demo_ui/tabcontrol.py b/uitest/demo_ui/tabcontrol.py index eb93339eb391..505bd5690b87 100644 --- a/uitest/demo_ui/tabcontrol.py +++ b/uitest/demo_ui/tabcontrol.py @@ -23,15 +23,12 @@ class TabControlTest(UITestCase): enter_text_to_cell(xGridWindow, "B2", "=2+3+4") xGridWindow.executeAction("SELECT", mkPropertyValues({"CELL": "B2"})) - self.ui_test.execute_modeless_dialog_through_command(".uno:FunctionDialog") + with self.ui_test.execute_modeless_dialog_through_command_guarded(".uno:FunctionDialog", close_button="cancel") as xFunctionDlg: - xFunctionDlg = self.xUITest.getTopFocusWindow() - xTabs = xFunctionDlg.getChild("tabcontrol") - select_pos(xTabs, "1") + xTabs = xFunctionDlg.getChild("tabcontrol") + select_pos(xTabs, "1") - xCancelBtn = xFunctionDlg.getChild("cancel") - xCancelBtn.executeAction("CLICK", tuple()) # vim: set shiftwidth=4 softtabstop=4 expandtab: |