量角器 elementExplorer 不工作,repl 没有出现在 windows

Protractor elementExplorer not working, repl not appearing on windows

我正在尝试让 elementExplorer 正常工作。

我正在尝试以下操作:

node node_modules\protractor\bin\protractor .\protractor.dev.conf.js --baseUrl http://angularjs.org --elementExplorer

使用以下配置

/// protractor.dev.conf.js

    exports.config = {
        // The address of a running selenium server.
        seleniumAddress: 'http://localhost:4444/wd/hub',
        baseUrl: 'http://localhost:54054/',

        // Capabilities to be passed to the webdriver instance.
        capabilities: {
          'browserName': 'chrome',
          'chromeOptions': {
            'args': ['show-fps-counter=true'],
            'binary' : 'C:\Users\me\AppData\Local\Chromium\Application\chrome.exe'
           } 
        },

        specs: ['specs/acceptance/**/*.js'],
        framework: 'mocha',
        onPrepare: 'specs/bootstrap-specs.js',
        mochaOpts: {
            reporter: "spec",
            debug : true,
            timeout : 4000
        }
    };

它按预期加载了 Chromium,但它没有重定向到 http://angularjs.org 并且 repl 从未出现。

有什么地方可能出错的想法吗?

注意:我可以正常执行测试

谢谢

我添加了 --troubleshoot 标志并得到以下信息:

> DEBUG - Running with --troubleshoot DEBUG - Protractor version: 1.7.0
> DEBUG - Your base url for tests is http://angularjs.org Using the
> selenium server at http://localhost:4444/wd/hub DEBUG - WebDriver
> session successfully started with capabilities { caps_:    { platform:
> 'XP',
>      acceptSslCerts: true,
>      javascriptEnabled: true,
>      browserName: 'chrome',
>      chrome: { userDataDir: 'C:\Users\me\AppData\Local\Temp\scoped_dir25488_18232' },
>      rotatable: false,
>      locationContextEnabled: true,
>      mobileEmulationEnabled: false,
>      'webdriver.remote.sessionid': '06c7edae-15e9-4e9a-8293-91e2d5c4fe90',
>      version: '42.0.2310.0',
>      takesHeapSnapshot: true,
>      cssSelectorsEnabled: true,
>      databaseEnabled: false,
>      handlesAlerts: true,
>      browserConnectionEnabled: false,
>      nativeEvents: true,
>      webStorageEnabled: true,
>      applicationCacheEnabled: false,
>      takesScreenshot: true } } Starting debugger agent. Debugger listening on port 5858

这可能与 https://github.com/angular/protractor/issues/1822 有关,这是一个 windows 问题。