Is there a waitApp command or similar

Asked by TestMechanic

I need to wait application to appear. I want to search it by title as in switchApp command(it seems more reliable). So is there such command?
I can search for image of the title but this doesn't seams a good option.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

No, not a feature.

You can only wait for a specific window, if you know its title.

myApp = App("some part of a window title")
# start the app somehow
while not myApp.window():
    wait(1)

... but you must be sure, that the window will be there after some time - otherwise you have an infinite loop.

Revision history for this message
TestMechanic (ndinev) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
TestMechanic (ndinev) said :
#3

In general I believe that this is important synch point - wait_for_window_to_exist. And it will be a nice if it it out of box :-)

Thanks