我将firefox升级到26,这给了org.openqa.selenium.firefox.NotConnectedException:
45000 ms后无法在端口7055上连接到主机127.0.0.1。 Firefox控制台输出: * LOG addons.manager:应用程序已升级
然后我将webdriver升级到2.39,它支持firefox 26 ...但仍然无法正常工作.. 操作系统胜出7
例外是:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID:
C:\Users\Salma.n\AppData\Local\Temp\anonymous38301webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening XPI database
C:\Users\Salma.n\AppData\Local\Temp\anonymous38301webdriver-profile\extensions.json
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG DeferredSave/extensions.json: Starting timer
*** LOG DeferredSave/extensions.json: Starting write
*** LOG DeferredSave/extensions.json: Write succeeded
*** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID:
答案 0 :(得分:2)
我在Win7上有完全相同的错误,升级到2.39为我工作
<seleniumVersion>2.39.0</seleniumVersion>
我只是确保实际使用2.39.0版本(检查日志),可能需要maven clean install?
答案 1 :(得分:0)
我有完全相同的问题(也赢了7),对我来说升级到selenium-server-standalone-2.39.0工作得很好。
也许您忘记在项目中导入新jar?只看一个人可以犯下的明显愚蠢的错误......
答案 2 :(得分:-1)
通过Maven依赖关系的xml-api的错误版本似乎阻止Firefox启动(也没有错误消息)。就我而言,hibernate-entity-manager-4.3.8 - &gt; dom4j-1.6.1 - &gt; xml-api-1.0.b2导致了这个问题。如下所示,我可以使用xercesImpl-2.11依赖链中的xml-api-1.4.01。我使用的是Firefox 36.0.4和WebDriver 2.45.0。
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.3.8.Final</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>