本文介绍了如何为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版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 15:17