Skip to content

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

Open
@PHUITesting

Description

@PHUITesting

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?

Activity

raschmitt

raschmitt commented on Mar 2, 2020

@raschmitt
Contributor

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

TomasHubelbauer

TomasHubelbauer commented on Jan 18, 2022

@TomasHubelbauer

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @DavertMik@TomasHubelbauer@raschmitt@PHUITesting

      Issue actions

        I.performSwipe(100,200); is completely broken, no error, no function. · Issue #1718 · codeceptjs/CodeceptJS