IE11 protractor selenium,无法创建新的遥控器

IE11 protractor selenium, unable to create new remote

期待量角器 conf.js 通过 Internet Explorer 11 打开 angular 网站

在我输入量角器 conf.js 之后它打开了 ie11,但我没有打开 URL,而是在我的 example_spec.js 'http://www.angularjs.org', am seeing ie11 is opening 'http://localhost:XXXXX/' (xxxx are numbers) and in the page it says, 'this is the initial start page for the WebDriver server', am expecting ie11 to be opened with 'http://www.angularjs.org'

错误报告

    E/Launcher - Unable to create new remote session, desired capabilities = capabilities [(count=1, browserName=internet explorer, version=11, platform='Any')], required capabilities= Capabilities [()].

`Node Version`: `v6.9.5` 

`Protractor Version`: `5.1.1`

`Angular Version`: ``

`Browser(s)`: `IE11`: 

`Operating System and Version`:  `Windows 7, os.arch: 'amd64',, os.version: 6.1`

`Your protractor configuration file;`
`exports.config` = `{`
seleniumAddress`: 'http://localhost:4444/wd/hub',
seleniumArgs`: `['Dwebdriver.ie.driver=c:\Users345\Appdata\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\IEDriverServer3.1.0.exe']`,
`capabilities`: `{`
`'browserName'` : `'internet explorer'`,
`'platform' : 'Any'`,
`'version'` : `'11'`
`},`
`framework`: `'jasmine'`,
`specs`: `['example_spec.js]`,
`jasmineNodeOpts`: `{`
`defaultTimeInterval`: `30000`
`}`
`};`

A relevant example test
`describe('angularjs home page',function(){`
`it('should greet the named user',function (){`
`browser.get('http://www.angularjs.org');`
`element(by.model('yourName')).sendKeys('Julie');`
`var greeting=element(by.binding('yourName'));`
`expect(greeting.getText().toEqual('Hello Julie!');`
`});`
`});`

运行测试的输出 它打开 ie11 但里面的 url 是 'http://localhost:XXXXX/' ,页面中的内容是 ' 'this is the initial start page for the WebDriver server'

重现错误的步骤 运行启动webdriver-manager然后到conf文件所在路径输入'protractor conf.js'

你运行测试的URL(如果相关) 'http://www.angularjs.org'

根据设计,IE 在导航到您的规范 browser.get() 中提供的 url 之前会打开一个默认页面。

是的,IE 设置很麻烦,在某些缺少的配置上,您会看到 Unable to create new remote session 并且浏览器仅显示默认页面。

这可能有多种原因。我建议尝试以下所有建议并参考现有问题

    每个区域
  • "Enable Protected Mode"
  • 禁用 IE 调试器
  • 缩放设置为 100%