diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-14 00:45:12 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-18 04:48:40 +0000 |
commit | 7ec0500e20cf273d70c4fbddb4063b8f8295307c (patch) | |
tree | cfb542ae37005ce03f88b1c96977095044e213ce /uitest/demo_ui | |
parent | 19d52e56a4581bb12bc271765feec7b8ab78c45b (diff) |
use special method to close dialog through button click
Change-Id: Id884cc75503cb433742f9316d9647cff801565f7
Reviewed-on: https://gerrit.libreoffice.org/34230
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/demo_ui')
-rw-r--r-- | uitest/demo_ui/radiobutton.py | 2 | ||||
-rw-r--r-- | uitest/demo_ui/tabdialog.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/uitest/demo_ui/radiobutton.py b/uitest/demo_ui/radiobutton.py index 34c6dee6972f..bb2f5bd07440 100644 --- a/uitest/demo_ui/radiobutton.py +++ b/uitest/demo_ui/radiobutton.py @@ -33,7 +33,7 @@ class RadioButtonTest(UITestCase): xNegativeNumRedCB.executeAction("CLICK",tuple()) okBtn = xCellsDlg.getChild("ok") - okBtn.executeAction("CLICK", tuple()) + self.ui_test.close_dialog_through_button(okBtn) self.ui_test.close_doc() diff --git a/uitest/demo_ui/tabdialog.py b/uitest/demo_ui/tabdialog.py index f9251178d259..ed46379ab05b 100644 --- a/uitest/demo_ui/tabdialog.py +++ b/uitest/demo_ui/tabdialog.py @@ -22,7 +22,7 @@ class TabDialogTest(UITestCase): select_pos(xCellsDlg, "1") xOkBtn = xCellsDlg.getChild("ok") - xOkBtn.executeAction("CLICK", tuple()) + self.ui_test.close_dialog_through_button(xOkBtn) self.ui_test.close_doc() @@ -38,7 +38,7 @@ class TabDialogTest(UITestCase): xCellsDlg.executeAction("SELECT", propsUNO) xOkBtn = xCellsDlg.getChild("ok") - xOkBtn.executeAction("CLICK", tuple()) + self.ui_test.close_dialog_through_button(xOkBtn) self.ui_test.close_doc() |