2017-03-22 42 views
-1

我使用FF 52.0.1硒3.3.1壁虎司機v0.15.0我使用FF 52.0.1硒3.3.1壁虎司機0.15.0

當我運行測試用例我得到這個異常:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: 
1490199380254 addons.manager DEBUG Application has been upgraded 
1490199380292 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 
1490199380294 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 
1490199380298 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm 
1490199380300 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm 
1490199380300 addons.manager DEBUG Starting provider: XPIProvider 
1490199380300 addons.xpi DEBUG startup 
1490199380301 addons.xpi INFO Mapping [email protected] to C:\Users\TGUDUG~1\AppData\Local\Temp\anonymous1718988216671391891webdriver-profile\extensions\[email protected] 
1490199380301 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\TGUDUG~1\AppData\Local\Temp\anonymous1718988216671391891webdriver-profile\extensions\webdriver-staging 
1490199380302 addons.xpi INFO SystemAddonInstallLocation directory is missing 
1490199380302 addons.xpi INFO Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] 
1490199380303 addons.xpi INFO Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] 
1490199380303 addons.xpi INFO Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] 
1490199380304 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi 
1490199380304 addons.xpi DEBUG Skipping unavailable install location app-system-share 
1490199380305 addons.xpi DEBUG Skipping unavailable install location app-system-local 
1490199380305 addons.xpi INFO Mapping {f176abfa-5be8-4b97-b851-d694e62fde1f} to C:\Program Files (x86)\Zoiper\ClickToDial\FireFox 
1490199380305 addons.xpi DEBUG checkForChanges 
1490199380306 addons.xpi DEBUG Loaded add-on state from prefs: {} 
1490199380306 addons.xpi DEBUG New add-on [email protected] in app-profile 

任何人都可以幫助我嗎?

+0

請仔細閱讀[問]並提供[MCVE。你是否谷歌錯誤?你發現了什麼?你有什麼試圖解決它? – JeffC

回答

0

嘗試使用64位的Firefox版本52和使用64位geckodriver爲selenium3.3.1和jdk1.8 64位

profile.setPreference("browser.tabs.remote.autostart", false); profile.setPreference("browser.tabs.remote.autostart.1", false); profile.setPreference("browser.tabs.remote.autostart.2", false); profile.setPreference("browser.tabs.remote.force-enable", "false");