rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
144 stars 61 forks source link

`Click` with offsets not working properly #142

Open dschiller opened 3 years ago

dschiller commented 3 years ago

On MacOS the following fails:

  Click  LPX/NewTrackInstrument  0  30

Instead of going 30 Pixels down ( Y Axis ) Sikuli tend to go 30 Pixels up.

Using:

  Click  LPX/NewTrackInstrument   0   -30

Also goes 30 Pixels up. So how to go down ?!?

Workaround:

  Click  LPX/NewTrackInstrument  0  1
  Click  LPX/NewTrackInstrument  0  30

Absolutely ugly but works.

Unfortunetly there is no Move Offset Function which results in unneeded Clicks.

dschiller commented 3 years ago

It seems it's the 0.

Fix is:

  Click  LPX/NewTrackInstrument  1  30
dschiller commented 3 years ago

The 1 still doesn't fix properly. Randomly it fails in the correct Position and the Mouse Cursor is somewhere else - not expected.

MathieuSlt commented 3 years ago

Hi I have kind of the same problem with the Drag And Drop by Offset. I'm on W10. For example if i do Drag And Drop By Offset x.png 0 300 It goes down and left.