加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 如何在Protractor中配置firefox二进制位置?

发布时间:2020-12-17 07:19:04 所属栏目:安全 来源:网络整理
导读:我使用Chrome成功运行了Protractor测试,使用Protractor配置中的以下部分指定了我的chrome二进制文件的路径: capabilities: {// You can use other browsers// like firefox,phantoms,safari,IE'browserName': 'chrome',"chromeOptions": { binary: 'C:/Buil
我使用Chrome成功运行了Protractor测试,使用Protractor配置中的以下部分指定了我的chrome二进制文件的路径:
capabilities: {
// You can use other browsers
// like firefox,phantoms,safari,IE
'browserName': 'chrome',"chromeOptions": {
  binary: 'C:/BuildSoftware/Chrome/Application/chrome.exe',}

这很有效.

我的Firefox也安装在非标准位置.

在量角器配置中是否有相同的方法为Firefox指定二进制文件?

更新:见下面的新答案: https://stackoverflow.com/a/28313583/800699

看来你必须自己使用firefox驱动程序的自定义参数启动Selenium Server.
见Protractor test is not starting on Firefox

可以在此处找到firefox驱动程序的更多选项(包括自定义firefox二进制位置):
https://code.google.com/p/selenium/wiki/FirefoxDriver

P / S:浏览firefox驱动程序源显示更多亮点:
https://code.google.com/p/selenium/source/browse/javascript/node/selenium-webdriver/firefox/index.js

您可以尝试添加:

"browserName": "firefox","firefox_binary": "path/to/custom/firefox","binary_": "path/to/custom/firefox"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读