Skip to content

It would be nice to have a method to perform drag in DeviceUtils class #37

@viveksalvi

Description

@viveksalvi

hi All,

I had a requirement where swipe wouldn't work because it is too fast, and duration couldn't be controlled.
Whereas in case of drag we can control the duration of drag operation.

So I came up with this snippet

    public static void drag(String location, String duration){
        Map<String, String> params = new HashMap();
        params.put("location", location);
        params.put("duration", duration);
        getQAFDriver().executeScript("mobile:touch:drag", params);
    }

It would be nice to have this method in DeviceUtils class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions