CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

I.performSwipe(100,200); is completely broken, no error, no function.

Open PHUITesting opened this issue 6 years ago • 2 comments

How does this function work all the docs say is:

"performSwipe Perform a swipe on the screen.

I.performswipe(100,200); Parameters from to Appium: support Android and iOS"

Left to right, or top to bottom? What are the to and from parameters actually doing if they are just numbers?

PHUITesting avatar Jun 13 '19 20:06 PHUITesting

Totally agree on this, we need better documentation for this method.

raschmitt avatar Mar 02 '20 00:03 raschmitt

For Google travelers, this is the right way to use the method:

I.performSwipe({ x: 360, y: 180 }, { x: 180, y: 180 });

Coordinates are of course examples, need to adjust them for your use-case. For me, swipeLeft/swipeRight etc. do not work at all, so I was very happy to get this method to work, even if it is less clean and less stable than swiping an element by a selector.

TomasHubelbauer avatar Jan 18 '22 08:01 TomasHubelbauer