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

allow to listen to different events

Change-Id: I4121d35e8052cf25bc2e6089e45c62c3bbcc859a
üst d5c8fa71
......@@ -79,11 +79,11 @@ class UITest(object):
raise DialogNotExecutedException(command)
def execute_dialog_through_action(self, ui_object, action, parameters = None):
def execute_dialog_through_action(self, ui_object, action, parameters = None, event_name = "DialogExecute"):
if parameters is None:
parameters = tuple()
with EventListener(self._xContext, "DialogExecute") as event:
with EventListener(self._xContext, event_name) as event:
ui_object.executeAction(action, parameters)
time_ = 0
while time_ < 30:
......@@ -92,7 +92,7 @@ class UITest(object):
return
time_ += DEFAULT_SLEEP
time.sleep(DEFAULT_SLEEP)
raise DialogNotExecutedException(command)
raise DialogNotExecutedException(action)
def create_doc_in_start_center(self, app):
xStartCenter = self._xUITest.getTopFocusWindow()
......
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