AppiumTestDistribution / appium-gestures-plugin

Appium plugin designed to perform gestures using W3C Actions.
47 stars 13 forks source link

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

Closed vnuta9 closed 1 year ago

vnuta9 commented 1 year ago

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

Then ran this command: $appium plugin update appium-gestures-plugin I got back this message: Error: ✖ The plugin "appium-gestures-plugin" was not installed, so can't be updated How to update the existing 'gestures@1.0.0-beta.4' to gestures@2.0.0 ?

jlipps commented 1 year ago

The name of the plugin in the list is gestures so your command should be appium plugin update gestures

vnuta9 commented 1 year ago

@jlipps Thanks for your helpful reply. When I ran the command, $appium plugin update gestures I got the message: ✔ Checking if plugin 'gestures' is updatable ✔ Checking if plugin 'gestures' needs an update ℹ Update report: ✖ - 'gestures' failed to update: Error: ✖ The plugin 'gestures' has a major revision update (1.0.0-beta.4 => 2.0.0), which could include breaking changes. If you want to apply this update,

re-run with --unsafe

Is it OK to run that command ??

appium plugin update gestures --unsafe

I am assuming that it is only suggesting that it is updating to ver2.0, which is not backward compatible, plus it is same as the 'appium-gestures-plugin', even though the name differs.

jlipps commented 1 year ago

That's right. There's no guarantee that v1 -> v2 is not going to have breaking changes, so appium asks you to rerun the command with --unsafe. The only way to know for sure if it's a good idea is to read the changelog for the plugin in question

saikrishna321 commented 1 year ago

@vnuta9 As jlipps mentioned v2 has no backward backward compatible. Going forward from v2 we will maintain backward compatible.

v1->v2 we moved into driver.execute()