rahul7386 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Drag is not working on an object #618

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a demo app to drag a button from one part of the screen to the other 
(I can send you mine if you'd like)
2. First drag any area that is not the button (with pointer location on so you 
can see the drag after it happens)
3. After seeing that that is successful, try dragging an object (that button) 
across the screen. (use something like solo.drag(400f, 400f, 350f, 900f, 10))

What is the expected output? What do you see instead?
The button should be dragged and released where the end coordinates are. 
Instead, a drag begins and a DragShadow appears for the button, but then the 
drag immediately halts, and refuses to perform any more steps on the AVD.

What version of the product are you using? On what operating system?
Robotium 5.2.1 running android junit tests
Robotium 4.3.1 running calabash-android tests

Windows 8
AVD Api 16-19 and Genymotion Api 19

Please provide any additional information below.
I can provide you with a sample if you'd like to see that the drag just stops. 
I have also created a stack overflow question for this @ 
http://stackoverflow.com/questions/24438463/calabash-android-dragging-button-wit
h-drag-shadow

I got drag to work for a rectangle drawn on canvas, but performing a drag over 
an object halts immediately

Original issue reported on code.google.com by ajemeis...@gmail.com on 27 Jun 2014 at 3:19

GoogleCodeExporter commented 9 years ago
you can find the drag app on my github @ 
https://github.com/alfredthomas/trainingapps/tree/master/DragNDrop

Original comment by ajemeis...@gmail.com on 27 Jun 2014 at 3:24

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. 

Original comment by renasr...@gmail.com on 20 Jul 2014 at 5:41

GoogleCodeExporter commented 9 years ago
is there any update or workaround for this?

Original comment by ajemeis...@gmail.com on 30 Oct 2014 at 6:09

GoogleCodeExporter commented 9 years ago
Not sure why this happens. For some reason sendPointerSync is interrupted. 
Unfortunately there is nothing we can do about it. 

Original comment by renasr...@gmail.com on 13 Nov 2014 at 10:35