[1.1.1] macOS 10.12.3: dragDrop not working --- seems to be a Java related problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Confirmed
|
Undecided
|
RaiMan |
Bug Description
Hello,
While using SikuliX IDE 1.1.1 (Also tried 1.1.0, same behaviour), on OSX 10.12.3 (Sierra) the drag and drop functionality does not seem to work as expected.
In my simplified application I have a left-side drawer (mobile style) which can be pulled-out and pushed-in.
Somehow the pulling-out function works as expected, but the pushing-in does not work.
On Windows (running in VirtualBox) with the same (Qt Quick 2.0) code-base and same Sikuli test code, all is functioning well (While I cannot see the mouse cursor moving, but I think this is due to the usage of VirtualBox).
I tried to do the drag and drop manually with mouseDown(
I tried debugging with a mouse-locator (show click actions), and everything seems fine, being: following the sequence: press/hold - move - release...
What I also noticed is that the animation of my drawer popping in/out is not showing while running a SikuliX test.
Attached you can find the windows application, as the mac application as the used (minimised) test script.
description: | updated |
summary: |
- Mac OS X Sierra 10.12.3 dragDrop not working + [1.1.1] macOS 10.12.3: dragDrop not working |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.1 |
Changed in sikuli: | |
importance: | Medium → Undecided |
I just played a little on my macOS 10.12.3:
I could reproduce this odd behavior, but do not have any idea currently.
This sequence e.g. works:
win = App.focusedWindow()
win.highlight(2)
p1 = Location(win.x + 10, win.y + win.h/2)
p2 = p1.offset(400, 0)
mouseDown( Button. LEFT)
mouseMove(p2)
wait(1)
mouseMove(p1)
mouseUp()
this opens and closes the drawer.
But if you do a mouseUp() in between, the next mouseDown() seems not to be recognized.
I will make a test directly with Java AWT Robot.