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

    Status: Open => Answered

RaiMan proposed the following answer:
When we are talking about any mobile simulator, running on a desktop:
yes, the swipe actions can be simulated using the mouse actions.

You might try dragDrop(from, to), where from and to are suitable points 
(Location) on the screen.
Using regions simply means you use their center points, with matches (search 
results) you use their targetOffset (which might be the center). 

Region phone = Region.create(x, y, w, h); // the coordinates and dimension of 
the simulator area
Location from = phone.getCenter();
Location to = from.above(200)
phone.dragDrop(from, to);   

If dragDrop() does not do it well, you might try to create your own
swipe simulator using the basic mouse actions mouseMove() and
mouseDown()/mouseUp() methods.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to