← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #687647]: Drag and Drop

 

Question #687647 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687647

TestMechanic posted a new comment:
In my experience I faced some problems with drag and drop on slower
(Mac) machines. In order to solve problem a customized function was
developed. Note that there are no actions (besides sleep) between all
mouse actions

    def CustomDragDropPixels(dragImg, dX=0, dY=0, delay=1):
        hover(dragImg)
        sleep(delay)
        mouseDown(Button.LEFT)
        sleep(delay)
        mouseMove(dX, dY)
        sleep(delay)
        mouseUp(Button.LEFT)
        sleep(delay)

As you can see this is really slow version of drag and drop, but it
works :-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.