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

huangapple go评论58阅读模式
英文:

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

问题

我正在使用Appium 2.0.0-beta66版本。由于TouchAction类被用于手势/操作已经被弃用,我应该安装appium-gestures-plugin(来自这里)并使用它。

当我尝试运行以下命令

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

如建议的那样,我收到以下消息

✔ 安装 'appium-gestures-plugin'
错误: ✖ 已经安装了一个名为“gestures”的插件。您是想要更新吗?

我尝试检查已安装的插件

$appium plugin list --installed

✔ 列出已安装的插件

如何将现有的 'gestures@1.0.0-beta.4' 更新到 gestures@2.0.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 'gestures@1.0.0-beta.4' to gestures@2.0.0 ?

答案1

得分: 0

我需要翻译的部分是:

最终,我得到了答案,我必须使用选项'--unsafe'来从gestures@1.0.0-beta4插件升级到gestures@2.0。这是由插件本身强制执行的,因为版本2.0有重大更改。

$appium插件更新gestures --unsafe

英文:

finally I got the answer that I have to use the option '--unsafe' to update from gestures@1.0.0-beta4 plugin to gestures@2.0. This is being enforced by the plugin itself, because ver2.0, has breaking changes.

  $appium plugin update gestures --unsafe

huangapple
  • 本文由 发表于 2023年6月1日 00:48:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76375733.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定