Appium自动服务器 - 没有Chromedriver发现可以自动化Chrome '68 .0.3440'

问题描述 投票:1回答:1

我正在尝试将物理Android设备连接到Appium Automatic Server。功能是:

{
  "platformName": "Android",
  "platformVersion": "8.1.0",
  "deviceName": "Oreo",
  "browserName": "Chrome"
}

当我点击“开始会话”时,它说

An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '68.0.3440'. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details.

https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md它说我需要版本2.4.2。我尝试用npm install -g appium-chromedriver --chromedriver_version="2.42"安装它,这不是正确的命令吗?

我也尝试在这里下载邮政https://chromedriver.storage.googleapis.com/index.html?path=2.42/并运行它无济于事。

android selenium-chromedriver appium android-8.0-oreo
1个回答
1
投票

如果从命令提示符打开Appium服务器,请尝试以下命令。

npm install appium --chromedriver_version="2.42"

or 

CHROMEDRIVER_VERSION=2.42 npm install appium

如果您从Appium桌面应用程序打开appium服务器。

在突出显示的字段中提供chromedriver二进制文件的路径。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.