为量角器安装特定的chromedriver [英] Install specific chromedriver for protractor

查看:56
本文介绍了为量角器安装特定的chromedriver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CircleCi上运行的chrome驱动程序出现问题. 问题是在运行时:

I am having an issue with chrome driver that runs on the CircleCi. The problem is that when running:

./node_modules/.bin/webdriver-manager update

,然后使用以下命令检查chromedriver和硒的版本:

and then checking the version of chromedriver and selenium with the command:

ls -lt node_modules/protractor/selenium

它显示最新版本是:

selenium-server-standalone-2.45.0.jar
chromedriver
chromedriver_2.15.zip

根据npm.taobao.org 请注意 ChromeDriver版本2.15支持Chrome v40-43.但是CicleCi 文档说,它使用的是Chrome版本38.0. 因此,我需要使用与Chrome v38.0兼容的ChromeDriver v2.13. 我的问题是,如何强制webdriver-manager使用ChromeDriver v2.13而不是最新版本.

According to the npm.taobao.org note ChromeDriver version 2.15 supports Chrome v40-43. But CicleCi documentation says that it uses Chrome version 38.0. Consequently, I need to use ChromeDriver v2.13 which is compatible with Chrome v38.0. My question is that how can I force webdriver-manager to use ChromeDriver v2.13 instead of the latest one.

推荐答案

这应该是量角器团队的功能要求.但这是我建议您执行的操作:

This should probably be a feature request for the protractor team. But this is what I recommend you to do:

在量角器的 config.json 文件. webdriver-manager使用此属性下载文件

Change the webdriverVersions property on protractor's config.json file. webdriver-manager uses this property to download the files.

这篇关于为量角器安装特定的chromedriver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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