在Windows Jenkins Slave节点上尝试在IE11上运行量角器时出现问题。在Windows Jenkins Slave节点上运行量角器的问题
当我通过远程桌面连接时,我可以运行没有问题的量角器。然而,当我尝试从詹金斯量角器我遇到这个问题:
[launcher] Error: UnknownError: JavaScript error (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 396 milliseconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'Win7', ip: '142.133.132.199', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_60'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, pageLoadStrategy=normal, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:12492/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=true, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
Session ID: a43ccc90-f9f7-4465-98c3-dfb88751a5a9
at new bot.Error (C:\Jenkins\workspace\sandbox\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:108:18)
at Object.bot.response.checkResponse (C:\Jenkins\workspace\sandbox\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\response.js:109:9)
at C:\Jenkins\workspace\sandbox\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:379:20
at Array.forEach (native)
at goog.async.run.processWorkQueue (C:\Jenkins\workspace\sandbox\node_modules\protractor\node_modules\selenium-webdriver\lib\goog\async\run.js:130:15)
at process._tickCallback (node.js:356:9)
[launcher] Process exited with error code 100
这很奇怪,因为我可以运行使用任何其他浏览器相同的测试。这里有一些事情我想:
- 确认在詹金斯使用相同的帐户作为一个我登录
- 其次在这个博客的步骤:http://elgalu.github.io/2014/run-protractor-against-internet-explorer-vm/
- 改变了受保护的设置,缩放级别和注册表项,按这个网站:https://code.google.com/p/selenium/wiki/InternetExplorerDriver
- 使用的IEDriverServer
x86版本试过有什么,我很想念?
完全相同的问题 – kevingilbert100
想指出,不要认为它与詹金斯或我的情况下的测试有任何关系,因为我运行量角器回购提供的示例测试到我的Internet Explorer vm slave,它仍然得到了上述错误。 – kevingilbert100
你有没有找到这个解决方案?我只是为ie11设置了一个新的虚拟机,遵循了你所做的相同的指导,我仍然只在IE11上得到这个Javascript错误......测试在chrome,firefox和** IE9 **(什么?)上运行。不知何故仍然失败ie11 – Gunderson