summaryrefslogtreecommitdiff
path: root/uitest/demo_ui/spinfield.py
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-18 03:32:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-18 03:56:54 +0000
commit19d52e56a4581bb12bc271765feec7b8ab78c45b (patch)
treeda21aeaffb6c2dddd5634489c2699774abe3bbc9 /uitest/demo_ui/spinfield.py
parent5bb5a9dacb84ec14f7148a5a5d9ba38b7e9f1039 (diff)
uitest: use the correct method to close a dialog through a button
Change-Id: I210c1d9a99a93b7a21478f679f440c270375bedc Reviewed-on: https://gerrit.libreoffice.org/34398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest/demo_ui/spinfield.py')
-rw-r--r--uitest/demo_ui/spinfield.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/demo_ui/spinfield.py b/uitest/demo_ui/spinfield.py
index a36189afeb16..3f73006b10bd 100644
--- a/uitest/demo_ui/spinfield.py
+++ b/uitest/demo_ui/spinfield.py
@@ -29,7 +29,7 @@ class SpinFieldTest(UITestCase):
assert(decimal_places_state["Text"] == "2")
okBtn = xCellsDlg.getChild("ok")
- okBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(okBtn)
self.ui_test.close_doc()
@@ -56,7 +56,7 @@ class SpinFieldTest(UITestCase):
assert(decimal_places_state["Text"] == "2")
okBtn = xCellsDlg.getChild("ok")
- okBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(okBtn)
self.ui_test.close_doc()
@@ -74,7 +74,7 @@ class SpinFieldTest(UITestCase):
assert(decimal_places_state["Text"] == "41")
okBtn = xCellsDlg.getChild("ok")
- okBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(okBtn)
self.ui_test.close_doc()