diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-27 04:05:59 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-27 09:44:31 +0000 |
commit | c9326537872e1f6b90a418ee2d7c7ffcf27b9c43 (patch) | |
tree | fba712d624a3fe4397b5956dfe9e74634ab950e1 /uitest | |
parent | aa10a19c8e56a51654bcb26f718f6e7187159c72 (diff) |
uitest: use the new dialog method in the python code
Change-Id: I252310bc453450236b5b7de0ef292cfbba7ea64a
Reviewed-on: https://gerrit.libreoffice.org/34670
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest/test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py index 312232930c49..2de8b317f795 100644 --- a/uitest/uitest/test.py +++ b/uitest/uitest/test.py @@ -66,7 +66,7 @@ class UITest(object): def execute_dialog_through_command(self, command): with EventListener(self._xContext, "DialogExecute") as event: - self._xUITest.executeCommand(command) + self._xUITest.executeDialog(command) time_ = 0 while time_ < 30: if event.executed: @@ -138,13 +138,13 @@ class UITest(object): def close_doc(self): with EventListener(self._xContext, ["DialogExecute", "OnViewClosed"] ) as event: - self._xUITest.executeCommand(".uno:CloseDoc") + self._xUITest.executeDialog(".uno:CloseDoc") time_ = 0 while time_ < 30: if event.hasExecuted("DialogExecute"): xCloseDlg = self._xUITest.getTopFocusWindow() xNoBtn = xCloseDlg.getChild("discard") - self.close_dialog_through_button(xNoBtn); + xNoBtn.executeAction("CLICK", tuple()) return elif event.hasExecuted("OnViewClosed"): return |