问题描述
- selenium版本和Firefox不兼容
-
报错如下:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
ges to installed add-ons
1449557733199 addons.xpi-utils DEBUG Updating add-on states
1449557733200 addons.xpi-utils DEBUG Writing add-ons list
1449557733205 addons.xpi DEBUG Registering manifest for C:Users卡卡AppDataLocalTempanonymous7170910585079014815webdriver-profileextensionscommonfix@mozillaonline.com.xpi
1449557733205 addons.xpi DEBUG Calling bootstrap method startup on commonfix@mozillaonline.com version 0.13
1449557733242 addons.xpi DEBUG Registering manifest for C:Users卡卡AppDataLocalTempanonymous7170910585079014815webdriver-profileextensionswx-assistant@mozillaonline.com.xpi
1449557733243 addons.xpi DEBUG Calling bootstrap method startup on wx-assistant@mozillaonline.com version 1.1.5
1449557733261 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1449557733261 addons.manager DEBUG Provider finished startup: XPIProvider
1449557733261 addons.manager DEBUG Starting provider: LightweightThemeManager
1449557733261 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1449557733261 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1449557733262 addons.manager DEBUG Starting provider: GMPProvider
1449557733266 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1449557733266 addons.manager DEBUG Provider finished startup: GMPProvider
1449557733266 addons.manager DEBUG Starting provider: PluginProvider
1449557733266 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1449557733266 addons.manager DEBUG Provider finished startup: PluginProvider
1449557733266 addons.manager DEBUG Completed startup sequence
JavaScript warning: file:///C:/Users/%E5%8D%A1%E5%8D%A1/AppData/Local/Temp/anonymous7170910585079014815webdriver-profile/extensions/cpmanager@mozillaonline.com/components/ceTracking.js, line 129: JavaScript 1.7's let blocks are deprecated
JavaScript warning: file:///C:/Users/%E5%8D%A1%E5%8D%A1/AppData/Local/Temp/anonymous7170910585079014815webdriver-profile/extensions/cpmanager@mozillaonline.com/components/ceTracking-old.js, line 89: JavaScript 1.7's let blocks are deprecated
1449557734198 DeferredSave.extensions.json DEBUG Starting write
1449557734726 addons.repository DEBUG No addons.json found.
1449557734727 DeferredSave.addons.json DEBUG Save changes
1449557734728 DeferredSave.addons.json DEBUG Starting timer
1449557734746 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1449557734747 addons.manager DEBUG Registering shutdown block其实已经启动的Firefox的浏览器,但是不知道为什么还是报错,
网上查询是selenium和Firefox版本不兼容的问题,目前的Firefox版本时42,selenium版本为2.48;各位大神谁有低版本的Firefox吗,或者Firefox42版本和什么版本的selenium兼容,
这个问题已经困扰我快一周了
谢谢各位。。。
解决方案
自动化测试selenium-java FireFox运行版本不兼容
时间: 2024-12-28 17:49:05