量角器 - Internet Explorer驱动程序没有运行selenium webdriver

时间:2015-07-16 06:30:26

标签: javascript internet-explorer selenium selenium-webdriver protractor

我已经针对此问题尝试了谷歌搜索结果的任何解决方案,但没有任何帮助。

请帮我解决这个问题,

谢谢!

量角器conf:

exports.config = {

  chromeDriver: 'npm/node_modules/protractor/selenium/chromedriver',
  chromeOnly: false,
  seleniumAddress: 'http://localhost:4444/wd/hub',

  specs: ['c:\\automation\\tests\\testCases\\newApp\\screenshotsTesting.js'],


  multiCapabilities: [{
  'browserName': 'firefox',
      'cli': {
      'args': ['webdriver.firefox.useExisting=default']
      // 'args': ['webdriver.firefox.useExisting=default', '-jsconsole', '-jsdebugger']
     }}, 

 {
  'browserName': 'chrome',
  'chromeOptions': {
     args: ['--test-type','--memory-metrics','--console','--crash-on-failure'] 
    // '--load-extension=' + 'C:\\Users\\idan\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Extensions\\idgpnmonknjnojddfkpgkljpfnnfcklj\\1.2.4_0'
  }
}},

  {
     'browserName': 'internet explorer'
      'platform': 'ANY',
      'version': '11'
    }],


  // maxSessions: 1,

  // rootElement: '.main',

  framework: "jasmine",

  allScriptsTimeout: 60000,

  getPageTimeout: 60000,

....

IE11工具 - 所有区域级别相同并已启用:

enter image description here

Selenium WD发布:

 java -Dwebdriver.ie.driver=C:\automation\npm\node_modules\selenium-standalone\.selenium\iedriver\IEDriverServer.exe -jar C:\automation\npm\node_modules\selenium-standalone\.selenium\selenium-server\2.45.0-server.jar

量角器启动:

c:\automation\tests\protractor-conf.js --browser="internet explorer" --seleniumAddress=http://localhost:4444/wd/hub
来自Selenium webdriver控制台的

错误:

Caused by: org.openqa.selenium.remote.SessionNotFoundException: Unexpected error
 launching Internet Explorer. Protected Mode settings are not the same for all z
ones. Enable Protected Mode must be set to the same value (enabled or disabled)
for all zones. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.04 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'vCitaQA', ip: '192.168.152.1', os.name: 'Windows 8.1', os.ar
ch: 'amd64', os.version: '6.3', java.version: '1.8.0_25'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.
java:204)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHa
ndler.java:162)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.ja
va:599)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriv
er.java:240)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriv
er.java:225)
        at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDri
ver.java:182)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorer
Driver.java:174)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorer
Driver.java:150)
        ... 14 more
09:19:13.656 WARN - Exception: Unexpected error launching Internet Explorer. Pro
tected Mode settings are not the same for all zones. Enable Protected Mode must
be set to the same value (enabled or disabled) for all zones. (WARNING: The serv
er did not provide any stacktrace information)
Command duration or timeout: 1.04 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'vCitaQA', ip: '192.168.152.1', os.name: 'Windows 8.1', os.ar
ch: 'amd64', os.version: '6.3', java.version: '1.8.0_25'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver

0 个答案:

没有答案