Skip to content

drag_from_to_for_duration gets server error #552

Closed
@StevePotter

Description

@StevePotter

I tried using the library's drag_from_to_for_duration but Appium server gave me:
Error: "fromX" parameter is mandatory for "dragFromToForDuration" call

The culprit is this line https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/ios/xcuitest_gestures.rb#L121

Change it to
args = { fromX: from_x, fromY: from_y, toX: to_x, toY: to_y, duration: duration } to fix it. Do you want a PR for this? Is this a change in Appium or has it been broken for a while?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions