I cannot identify window by title

Asked by valeria

Hello,
I am using Sikuli for file upload in a Selenium Webdriver + Java test. And I'm trying to identify the 'File Upload' window in order to focus it, using:

App app = new App("File Upload");
app.focus();

We have 2 environments where we run this test: one Windows XP and one Windows 8.
The funny thing is that on Win8 I get:
[log] App.focus File Upload(0) #0
[error] App.focus failed: File Upload not found
but on WinXP there is no error and the window is found and focused.

I don't understand why this is happening because the window title is the same, I even checked it with a win tool which gives all details about opened windows.
Do you have any ideas on this subject? Please help.

Question information

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

sorry, no idea.

did you try:
App.focus("File Upload")

If it does not work, I cannot help you.
You need to find another method, to get the window focused.

reason: the features are deep down implemented with C++ and using native Win32 API methods.
There might be differences between XP and 8, that the implementation (not touched the last 4 years) might not reflect.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

sorry, no idea.

did you try:
App.focus("File Upload")

If it does not work, I cannot help you.
You need to find another method, to get the window focused.

reason: the features are deep down implemented with C++ and using native Win32 API methods.
There might be differences between XP and 8, that the implementation (not touched the last 4 years) might not reflect.

Revision history for this message
valeria (valeria-jitianu) said :
#3

Hi,
I tried also with App.focus("File Upload") but it doesn't recognize the window :(
Thanks for the answer.

Can you help with this problem?

Provide an answer of your own, or ask valeria for more information if necessary.

To post a message you must log in.