量角器启动Firefox(带有配置文件),但没有响应/运行任何代码

时间:2018-02-13 13:38:40

标签: firefox automation protractor geckodriver

问题是网络应用程序我测试的是2个基本身份验证,需要代理。

我希望通过在FireFox配置文件中添加AutoAuth插件来传递两个基本身份验证,并在每次调用firefox的新实例时设置该配置文件以加载到我的conf.js中。 问题是FF启动并且不执行任何操作 - >只是留空。

我的conf.js

    exports.config = {
    framework: 'jasmine2',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['./testScripts/*.js'],
  capabilities: {
   'browserName': 'firefox',
    firefoxPath: 'C:/Program Files/Mozilla Firefox/firefox.exe',
    'moz:firefoxOptions': {
   'args': ["-profile","C:/Users/QA/AppData/Roaming/Mozilla/Firefox/Profiles/vp04m5l2.fireFoxTestAcc"]
    }
},

只要我添加木偶:false,或者我禁用了firefox配置文件,我的规范中的代码就会开始执行。使用directconnect测试true& false。

  

量角器版本5.3.0
Firefox版本:59.0b8
geckodriver    - v0.19.1
NPM - 5.6.0

1 个答案:

答案 0 :(得分:0)

壁虎驱动程序似乎有问题。

bugzilla中有一张公开票-由于自定义配置文件的端口未知,无法建立与木偶的连接-https://bugzilla.mozilla.org/show_bug.cgi?id=1421766

考虑使用以下解决方法:https://github.com/mozilla/geckodriver/issues/1058#issuecomment-347952270

相关问题