sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29735
Re: [Question #259261]: Problem with dragDrop method in Java
Question #259261 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/259261
Status: Open => Answered
RaiMan proposed the following answer:
Internally, dragDrop() is a wrapper for the sequence:
mouseMove(source)
mouseDown(Button1)
mouseMove(target)
mouseUp()
if dragDrop does not work, this is usually an intermediate timing
problem.
e.g. to find out, what might help, you can add waits in the above
sequence:
mouseMove(source)
mouseDown(Button1)
wait(0.5) # give GUI more time to acknowledge drag preparation
mouseMove(target)
wait(0.5) # give GUI a chance to acknowledge drop preparation
mouseUp()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.