Clicking not working on Quality Center

Asked by Yves Valgaeren

Hello all,

I'm trying to use Sikuli and apparently, I don't seem to be able to click or type anything when challenging the system under test.

Here is what I did try
1. Click() (selected a free text field in the system under test)
2. type ("Hello World")

Sikuli gives back:
   [log] Click on(785,564)

   [debug] showTarget 745 524 80 80
   [log] TYPE "Hello World"

When running in slow motion Sikuli shows that it clicks in the right place (where I would click as a user). However the field never gets its focus, neither the text is actually typed.

What am I doing wrong? What additional information would be helpful?

PS
System under Test = Quality Center v10 (see HP)
Using Sikuli with windows or Notepad works just fine

Question information

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

Since you say, that even in slow motion (there is enough time to get the IDE out of way), the input field does not get focus, I guess that your target window does not have focus to accept the click.

so either use switchApp() or a click on an inactive area of the window to get it activated.

Revision history for this message
Yves Valgaeren (yves-valgaeren) said :
#2

I’ve found it.

When you’re interested in the resolution:
I was running the system under test as an Administrator (right click > Run as Administrator) in Windows Vista, while Sikuli ran with my normal user account.
Running both the system under test and Sikuli with the same account did the magic.

Anyway Rainman, you helped me thinking about it. Thanks a lot.

Revision history for this message
Dustin M (dustinthewind) said :
#3

Hey Yves Valgaeren you solved my problem. I coudn't get sikuli to click a certain app at all. It turned out that app had administrative rights but Sikuli did not. Because of this Sikuli would not work on it. The minute I changed Sikuli to run with administrative rights it started working and actually clicking

Before this Sikuli would just indicate it had clicked and even identified images but nothing happened. It was sooo frusturating. I went through a lot of the forrums before I found your solution. Thanks Yves and Rai