Search code examples
pluginsappiumnpm-installgesture

Install or update appium-gestures-plugin required for W3c Actions/Gestures implementation when using Appium 2.0


I am using Appium2.0.0-beta66 version. Since TouchAction class being used for the gesture/actions is being deprecated, I am supposed to install appium-gestures-plugin (from ) and use it.

When I try to run the command

appium plugin install --source=npm appium-gestures-plugin

as was suggested, I am getting the message

✔ Installing 'appium-gestures-plugin'
Error: ✖ A plugin named "gestures" is already installed. Did you mean to update?

I tried to check the installed plugins

$appium plugin list --installed

✔ Listing installed plugins

How to update the existing '[email protected]' to [email protected] ?


Solution

  • finally I got the answer that I have to use the option '--unsafe' to update from [email protected] plugin to [email protected]. This is being enforced by the plugin itself, because ver2.0, has breaking changes.

      $appium plugin update gestures --unsafe