Kaydet (Commit) c5875ef7 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: handle the new template dialog in impress

Change-Id: I98507b0e810db88ad94ea093db2d7dc7f495e7ab
üst 903e6075
......@@ -28,6 +28,12 @@ class SimpleImpressTest(UITestCase):
self.ui_test.create_doc_in_start_center("impress")
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
xCancelBtn.executeAction("CLICK", tuple())
time.sleep(2)
xImpressDoc = self.xUITest.getTopFocusWindow()
xEditWin = xImpressDoc.getChild("impress_win")
......@@ -39,7 +45,14 @@ class SimpleImpressTest(UITestCase):
self.ui_test.create_doc_in_start_center("impress")
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
xCancelBtn.executeAction("CLICK", tuple())
time.sleep(2)
xImpressDoc = self.xUITest.getTopFocusWindow()
print(xImpressDoc.getChildren())
xEditWin = xImpressDoc.getChild("impress_win")
......@@ -51,7 +64,14 @@ class SimpleImpressTest(UITestCase):
self.ui_test.create_doc_in_start_center("impress")
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
xCancelBtn.executeAction("CLICK", tuple())
time.sleep(2)
xImpressDoc = self.xUITest.getTopFocusWindow()
print(xImpressDoc.getChildren())
xEditWin = xImpressDoc.getChild("impress_win")
......@@ -61,7 +81,14 @@ class SimpleImpressTest(UITestCase):
self.ui_test.create_doc_in_start_center("impress")
xTemplateDlg = self.xUITest.getTopFocusWindow()
xCancelBtn = xTemplateDlg.getChild("cancel")
xCancelBtn.executeAction("CLICK", tuple())
time.sleep(2)
xImpressDoc = self.xUITest.getTopFocusWindow()
print(xImpressDoc.getChildren())
xEditWin = xImpressDoc.getChild("impress_win")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment