← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #295053]: .focus() and .isRunning() Issues

 

Question #295053 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295053

Description changed to:
Hello - I have been experiencing a strange issue with the App class. As
of just last week I had been getting different behavior out of both
these methods.

I had a long post here about how .focus() and .isRunning() behave
erratically when you have many apps that run off java.exe (despite
having different PIDs).

To verify that all of them were running, you needed to focus() before
doing an .isRunning() check.

.focus() or .isRunning() seems to strip the app name that you pass in
creating an app.

Fortunately, this process can be solved by using app.window() to verify
if a window is running. (Returns Null if no window).

A bit more clarity on the .isRunning and .focus() methods would be very
useful though as they do not seem completely reliable.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.