实习生IE8 WinXP驱动程序将无法运行

时间:2014-09-03 19:50:36

标签: internet-explorer-8 intern

这是在实习生2下运行我自己的本地selenium服务器。

在IE8 WinXP中,我尝试了自己在IE9 / Win7上运行的测试以及实习教程。我已经尝试了geezer分支以及常规分支。什么都行不通,它们似乎都悬挂在Initialised internet explorer 8 on WINDOWS

浏览器打开并转到http://localhost:9000/__intern/client.html?config=tests%2Fintern.js&reporters=webdriver... 并显示“Browser Test Runner”作为标题。该计划似乎无限期冻结。

有没有人有解决方案?

这是我的selenium服务器日志的结束,似乎陷入了循环

    at org.openqa.selenium.support.events.EventFiringWebDriver.executeScript(EventFiringWebDriver.java:213)
    at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:55)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:169)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
22:11:32.783 WARN - Exception: JavaScript error (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 47 milliseconds
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'ie8winxp', ip: '10.0.2.15', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.7.0_67'
Session ID: a4381fe3-153c-4072-bb92-e53dbc91e0f4
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=1, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=8, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:47261/, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
22:11:32.814 INFO - Executing: [get: about:blank])
22:11:33.048 INFO - Done: [get: about:blank]
22:11:33.048 INFO - Executing: [get current url])
22:11:33.064 INFO - Executing: [execute script: return (function getCoverageData() {
        /*global __internCoverage:false */
        return typeof __internCoverage !== 'undefined' && JSON.stringify(__internCoverage);
    }).apply(this, arguments);, []])
22:11:33.080 INFO - Done: [get current url]
22:11:33.126 INFO - Done: [execute script: return (function getCoverageData() {
        /*global __internCoverage:false */
        return typeof __internCoverage !== 'undefined' && JSON.stringify(__internCoverage);
    }).apply(this, arguments);, []]
22:11:33.126 INFO - Executing: [get: http://localhost:9000/__intern/client.html?config=intern.js&reporters=webdriver&baseUrl=%2F&sessionId=761f2175-4b51-4bea-900d-392520d52db8])
22:11:33.345 INFO - Done: [get: http://localhost:9000/__intern/client.html?config=intern.js&reporters=webdriver&baseUrl=%2F&sessionId=761f2175-4b51-4bea-900d-392520d52db8]

这里“丢失”了浏览器,

然后它会卡住并打印出来:

22:11:53.892 INFO - Executing: [get current url])
22:11:53.923 INFO - Done: [get current url]
22:11:53.892 INFO - Executing: [get current url])
22:11:53.923 INFO - Done: [get current url]
...

一遍又一遍

1 个答案:

答案 0 :(得分:1)

一个老问题,但我最近在IE 10中遇到了同样的问题。

在我的情况下,经过一些调查后,我注意到IE默认情况下所有网站都处于兼容模式。这导致Intern运行的测试中出现JavaScript错误,因此挂起了所有进程。

禁用标记,所有内容都以鲜艳的颜色运行。