sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31157
Re: [Question #263845]: dragDrop does not work using Jython script
Question #263845 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/263845
Status: Open => Answered
RaiMan proposed the following answer:
drag does not click, but only hovers and presses/holds left mouse
button.
You might try a step by step solution:
src = s.find("image-of-source.png")
tgt = s.find("image-of-target.png")
s.hover(src)
wait(0.2)
mouseDown(Button.LEFT)
wait(0.2)
hover(tgt)
wait(0.2)
mouseUp()
You might vary the waits and put into a def if it works.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.