-
Notifications
You must be signed in to change notification settings - Fork 233
click() doesn't click #260
Comments
already tried: |
So what's point of Although I've tried suggested code, but it doesn't work as expected either.
After clicking Run from editor, the window gets focused correctly, the right image is blinking for a second (twice), then mouse moves on it from Run button (in IDE) into that image, nothing happens for 2 seconds, then mouse moves back to the middle of the screen. What I'm doing wrong? Maybe I need to move the mouse first using different function, then click on it, as it seems hover doesn't move the mouse cursor. |
If you're using |
@glitchassassin |
This is only to test possible timing problems with your GUI. Another option instead of region.click() would be to use
which would simply click at the current position of the mouse pointer. |
For some reason it doesn't click, despite the right location and that the click is registered in the log:
Code:
Maybe it's just BlueStacks app specific issue. I'll try to find some workaround and test that with different app or on different operating system. |
Is BlueStacks running as root? Is Sikuli running as root? |
All apps default ran as a user. The mouse moves fine (so SikuliX has access to control it), but it doesn't click (it 'think' it did, but there is no any after effect). Manually clicking on the same region works fine. |
Tested also with Screen Sharing app by sharing screen locally (so it's different app), but it is the same issue with |
In Sikuli, sometimes clicks does not work in Graphics Area, the solution for this is to first hover, wait and then click as specified here RaiMan/SikuliX-2014#260 So adding support for hover command
I've this Python script on macOS Sierra:
when run in SikulixIDE 1.1.1 against BlueStacks, the search image is highlighted (which means it's found), mouse moves on the right spot, but the click is not registered, despite in log it's successful:
Screenshot of the app:
The text was updated successfully, but these errors were encountered: