summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/conditional_format/tdf105411.py
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/uitest/conditional_format/tdf105411.py')
-rw-r--r--sc/qa/uitest/conditional_format/tdf105411.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/sc/qa/uitest/conditional_format/tdf105411.py b/sc/qa/uitest/conditional_format/tdf105411.py
index 8f08c2f22fb5..35a15ef3f19f 100644
--- a/sc/qa/uitest/conditional_format/tdf105411.py
+++ b/sc/qa/uitest/conditional_format/tdf105411.py
@@ -11,25 +11,24 @@ class tdf105411(UITestCase):
def test_delete_conditional_format(self):
- self.ui_test.create_doc_in_start_center("calc")
+ with self.ui_test.create_doc_in_start_center_guarded("calc"):
- self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog")
+ self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog")
- xCondFormatDlg = self.xUITest.getTopFocusWindow()
+ xCondFormatDlg = self.xUITest.getTopFocusWindow()
- xDeleteBtn = xCondFormatDlg.getChild("delete")
- xDeleteBtn.executeAction("CLICK", tuple())
+ xDeleteBtn = xCondFormatDlg.getChild("delete")
+ xDeleteBtn.executeAction("CLICK", tuple())
- xCondFormatDlg = self.xUITest.getTopFocusWindow()
+ xCondFormatDlg = self.xUITest.getTopFocusWindow()
- xDeleteBtn = xCondFormatDlg.getChild("add")
- xDeleteBtn.executeAction("CLICK", tuple())
+ xDeleteBtn = xCondFormatDlg.getChild("add")
+ xDeleteBtn.executeAction("CLICK", tuple())
- xCondFormatDlg = self.xUITest.getTopFocusWindow()
+ xCondFormatDlg = self.xUITest.getTopFocusWindow()
- xOkBtn = xCondFormatDlg.getChild("ok")
- self.ui_test.close_dialog_through_button(xOkBtn)
+ xOkBtn = xCondFormatDlg.getChild("ok")
+ self.ui_test.close_dialog_through_button(xOkBtn)
- self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: