更新App的chromedriver版本

时间:2018-08-03 10:21:14

标签: appium-android

我正在模拟器上测试移动Web应用程序(Android),这是配置:

    desired_caps['platformName'] = 'Android'
    desired_caps['platformVersion'] = '7.0'
    desired_caps['deviceName'] = 'Pixel'
    desired_caps['browserName'] = 'Chrome'

我收到此错误:

 Exception: Message: An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: A new session could not be created. (Original error: session not created exception: Chrome version must be >= 60.0.3112.0

 (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.13.0-141-generic x86_64))

我的设备模拟器上的Chrome版本是:51.0.2704。我试图通过执行以下操作更改chrome驱动程序的版本:

 npm install appium-chromedriver --chromedriver_version="2.23" 

但是即使执行上述命令,chromedriver仍然保持2.33 。我的appium版本是1.7.2

0 个答案:

没有答案