Problem with App class in linux
Hello,
I've started a java project recently, which is sikuli-based. My environment is ARCH linux + eclipse + sikuli java API + KDE plasma.
Imagepath. Screen class, mouse.hover(), click() , etc. etc.... all of that works great. Pretty impressive stuff, I must say.
However, I've spent several hours in order to make the App class to work, but to no avail. I am a bit confused, since, according to the docs, its methods are pretty simple and self-explanator
---------
App browsy = new App("chromium");
browsy.open();
try
{
Thread.
}
catch(
{}
browsy.focus();
browsy.close();
-------------
Chromium will open in a new window (lo and behold) , which is fine and ok. But after that, the window will not close. In fact, I cannot seem to be able to control the app object at all. I mean, for example:
- both isValid() and isRunning() will return false
- close() will do nothing, i.e., I can open a chromium window, but I cannot close it.
- if you purpousefully take the focus to another window (by simply clicking on it) , after the trhee seconds delay, browsy.focus() won't work either, i.e., the chromium window won't become the front-most window in the screen.
- getTitle() returns an empty string, getName() returns "chromium".
It seems like, I don't know, like if the app object, once I've called open() on it, wouldn't be able to "recognize" the chromium window anymore.
If you could shed some light on this one, I'd be very grateful !
thanks for your time,
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jose Miguel for more information if necessary.