如何升级 appium 的 chromedriver 版本? [英] How to upgrade chromedriver version for appium?

查看:26
本文介绍了如何升级 appium 的 chromedriver 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Chrome 版本 65 上运行 Appium 脚本时出现以下错误:

I am getting the following error when attempting to run an Appium script on the Chrome Version 65:

selenium.common.exceptions.WebDriverException:消息:未知错误:调用函数结果缺少值"(会话信息:chrome=65.0.3325.109)(驱动程序信息:chromedriver=2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2),platform=Mac OS X 10.13.4 x86_64)

selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.109) (Driver info: chromedriver=2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2),platform=Mac OS X 10.13.4 x86_64)

我发现需要更新 chromedriver 版本,但我找不到成功执行此操作的方法.

I have found that the chromedriver version needs to be updated but I can't find a way to successfully do this.

所以我的问题是如何将 chromedriver 版本升级到最新版本?

So my question is how do I upgrade the chromedriver version to the latest version?

推荐答案

首先,Chromedriver 的每次更新都会增加 Chrome 的最低支持版本 => 旧设备通常无法使用使用捆绑版本实现自动化.

So first, with each update to Chromedriver there is an increase in the minimum supported version of Chrome => older devices are often unable to be automated with the bundled version.

所以它不是appium/chromdriver兼容性,而是你的设备浏览器/chromdriver版本兼容性检查.

So its not appium/chromdriver compatibility, its your device browser/ chromdriver versions compatibility check.

要检查版本兼容性,请查看这里

To check versions compatibility you go look here

当您确定适合您的版本时,请运行:

When you figure out whats version works for you, run:

npm install appium --chromedriver_version="2.37"

此版本支持 Chrome v 64-66

This version supports Chrome v 64-66

这篇关于如何升级 appium 的 chromedriver 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆