summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-29 16:35:02 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-29 17:26:47 +0200
commitd5c8fa716cfe8599107979db3966e14e8d220c44 (patch)
treeed120bf02182eedf6c80b7cc6a0e1d998a6d3719 /uitest
parent0a4eecd49a6744838a23a0a6804a851511aed246 (diff)
use the new close dialog abstraction in impress
Change-Id: I6fef4bfa5b964c83b21c73ec406bf7fc10958a41
Diffstat (limited to 'uitest')
-rw-r--r--uitest/impress_tests/start.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py
index aada10b4b0ba..b489b7e0fe7a 100644
--- a/uitest/impress_tests/start.py
+++ b/uitest/impress_tests/start.py
@@ -20,7 +20,7 @@ class SimpleImpressTest(UITestCase):
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
- xCancelBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(xCancelBtn)
xImpressDoc = self.xUITest.getTopFocusWindow()
@@ -35,10 +35,9 @@ class SimpleImpressTest(UITestCase):
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
- xCancelBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(xCancelBtn)
xImpressDoc = self.xUITest.getTopFocusWindow()
- print(xImpressDoc.getChildren())
xEditWin = xImpressDoc.getChild("impress_win")
@@ -52,10 +51,9 @@ class SimpleImpressTest(UITestCase):
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
- xCancelBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(xCancelBtn)
xImpressDoc = self.xUITest.getTopFocusWindow()
- print(xImpressDoc.getChildren())
xEditWin = xImpressDoc.getChild("impress_win")
@@ -67,7 +65,7 @@ class SimpleImpressTest(UITestCase):
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
- xCancelBtn.executeAction("CLICK", tuple())
+ self.ui_test.close_dialog_through_button(xCancelBtn)
xImpressDoc = self.xUITest.getTopFocusWindow()
print(xImpressDoc.getChildren())