org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefoxconsole output:
r-profileextensionswebdriver-staging
1467191370173 addons.xpi INFO SystemAddonInstallLocation directory ismissing
1467191370174 addons.xpi INFO Mapping{972ce4c6-7e08-4474-a285-3208198ce6fd} to C:Program Files (x86)MozillaFirefoxrowserextensions{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-share
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-local
1467191370175 addons.xpi DEBUG checkForChanges
1467191370176 addons.xpi DEBUG Loaded add-on state from prefs:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370176 addons.xpi DEBUG Existing add-on fxdriver@googlecode.com inapp-profile
1467191370177 addons.xpi DEBUG getModTime: Recursive scan of{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370178 addons.xpi DEBUG Existing add-on{972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1467191370178 addons.xpi DEBUG getInstallState changed: false, state:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\MozillaFirefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370179 addons.xpi DEBUG No changes found
1467191370186 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1467191370186 addons.manager DEBUG Provider finished startup: XPIProvider
1467191370186 addons.manager DEBUG Starting provider: LightweightThemeManager
1467191370186 addons.manager DEBUG Registering shutdown blocker forLightweightThemeManager
1467191370187 addons.manager DEBUG Provider finished startup:LightweightThemeManager
1467191370187 addons.manager DEBUG Starting provider: GMPProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1467191370191 addons.manager DEBUG Provider finished startup: GMPProvider
1467191370191 addons.manager DEBUG Starting provider: PluginProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker forPluginProvider
1467191370192 addons.manager DEBUG Provider finished startup: PluginProvider
1467191370192 addons.manager DEBUG Completed startup sequence
1467191370358 addons.xpi-utils DEBUG Starting async load of XPI databaseC:UsersgAppDataLocalTempanonymous2859161723742249731webdriver-profileextensions.json
*** Blocklist::_loadBlocklistFromFile:blocklist is disabled
1467191370449 addons.manager DEBUG Starting provider: <unnamed-provider>
1467191370449 addons.manager DEBUG Registering shutdown blocker for<unnamed-provider>
1467191370449 addons.manager DEBUG Provider finished startup:<unnamed-provider>
1467191370544 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1467191370544 addons.xpi-utils DEBUG Finished async read of XPI database,parsing...
1467191370546 addons.xpi-utils DEBUG Successfully read XPI database
1467191370613 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1467191370613 addons.manager DEBUG Registering shutdown blocker forPreviousExperimentProvider
1467191370613 addons.manager DEBUG Provider finished startup:PreviousExperimentProvider
JavaScript warning:https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js,line 9825: mutating the [[Prototype]] of an object will cause your code to runvery slowly; instead create the object with the correct initial [[Prototype]]value using Object.create
atorg.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
atorg.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
atorg.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99)
atfirefox.FireProfileDriverInit.fireFoxConfiger(FireProfileDriverInit.java:37)
atwebDriver.EventListenerTest.main(EventListenerTest.java:19)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:Program Files (x86)MozillaFirefoxfirefox.exe) on port 7055; process output follows:
r-profileextensionswebdriver-staging
1467191370173 addons.xpi INFO SystemAddonInstallLocation directory ismissing
1467191370174 addons.xpi INFO Mapping{972ce4c6-7e08-4474-a285-3208198ce6fd} to C:Program Files (x86)MozillaFirefoxrowserextensions{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-share
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-local
1467191370175 addons.xpi DEBUG checkForChanges
1467191370176 addons.xpi DEBUG Loaded add-on state from prefs:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\MozillaFirefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370176 addons.xpi DEBUG Existing add-on fxdriver@googlecode.com inapp-profile
1467191370177 addons.xpi DEBUG getModTime: Recursive scan of{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370178 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd}in app-global
1467191370178 addons.xpi DEBUG getInstallState changed: false, state:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\MozillaFirefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370179 addons.xpi DEBUG No changes found
1467191370186 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1467191370186 addons.manager DEBUG Provider finished startup: XPIProvider
1467191370186 addons.manager DEBUG Starting provider: LightweightThemeManager
1467191370186 addons.manager DEBUG Registering shutdown blocker forLightweightThemeManager
1467191370187 addons.manager DEBUG Provider finished startup:LightweightThemeManager
1467191370187 addons.manager DEBUG Starting provider: GMPProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1467191370191 addons.manager DEBUG Provider finished startup: GMPProvider
1467191370191 addons.manager DEBUG Starting provider: PluginProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker forPluginProvider
1467191370192 addons.manager DEBUG Provider finished startup: PluginProvider
1467191370192 addons.manager DEBUG Completed startup sequence
1467191370358 addons.xpi-utils DEBUG Starting async load of XPI databaseC:UsersgAppDataLocalTempanonymous2859161723742249731webdriver-profileextensions.json
*** Blocklist::_loadBlocklistFromFile:blocklist is disabled
1467191370449 addons.manager DEBUG Starting provider: <unnamed-provider>
1467191370449 addons.manager DEBUG Registering shutdown blocker for<unnamed-provider>
1467191370449 addons.manager DEBUG Provider finished startup:<unnamed-provider>
1467191370544 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1467191370544 addons.xpi-utils DEBUG Finished async read of XPI database,parsing...
1467191370546 addons.xpi-utils DEBUG Successfully read XPI database
1467191370613 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1467191370613 addons.manager DEBUG Registering shutdown blocker forPreviousExperimentProvider
1467191370613 addons.manager DEBUG Provider finished startup:PreviousExperimentProvider
JavaScript warning:https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js,line 9825: mutating the [[Prototype]] of an object will cause your code to runvery slowly; instead create the object with the correct initial [[Prototype]]value using Object.create
Build info: version: "2.45.0",revision: "5017cb8e7ca8e37638dc3091b2440b90a1d8686f", time: "2015-02-2709:10:26"
System info: host: "Sunny-PC", ip:"", os.name: "Windows 7", os.arch: "amd64", os.version: "6.1",java.version: "1.7.0_67"
Driver info: driver.version:FirefoxDriver
atorg.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
atorg.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
atorg.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
atorg.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99)
atfirefox.FireProfileDriverInit.fireFoxConfiger(FireProfileDriverInit.java:37)
atwebDriver.EventListenerTest.main(EventListenerTest.java:19)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefoxconsole output:
r-profileextensionswebdriver-staging
1467191370173 addons.xpi INFO SystemAddonInstallLocation directory ismissing
1467191370174 addons.xpi INFO Mapping{972ce4c6-7e08-4474-a285-3208198ce6fd} to C:Program Files (x86)MozillaFirefoxrowserextensions{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-share
1467191370175 addons.xpi DEBUG Skipping unavailable install locationapp-system-local
1467191370175 addons.xpi DEBUG checkForChanges
1467191370176 addons.xpi DEBUG Loaded add-on state from prefs:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\MozillaFirefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370176 addons.xpi DEBUG Existing add-on fxdriver@googlecode.com inapp-profile
1467191370177 addons.xpi DEBUG getModTime: Recursive scan of{972ce4c6-7e08-4474-a285-3208198ce6fd}
1467191370178 addons.xpi DEBUG Existing add-on{972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1467191370178 addons.xpi DEBUG getInstallState changed: false, state:{"app-profile":{"fxdriver@googlecode.com":{"d":"C:\Users\g\AppData\Local\Temp\anonymous2859161723742249731webdriver-profile\extensions\fxdriver@googlecode.com","e":false,"v":"2.45.0","st":1467191361402,"mt":1467191361387}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\ProgramFiles (x86)\MozillaFirefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1466996606931,"mt":1466996606734}}}
1467191370179 addons.xpi DEBUG No changes found
1467191370186 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1467191370186 addons.manager DEBUG Provider finished startup: XPIProvider
1467191370186 addons.manager DEBUG Starting provider: LightweightThemeManager
1467191370186 addons.manager DEBUG Registering shutdown blocker forLightweightThemeManager
1467191370187 addons.manager DEBUG Provider finished startup:LightweightThemeManager
1467191370187 addons.manager DEBUG Starting provider: GMPProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1467191370191 addons.manager DEBUG Provider finished startup: GMPProvider
1467191370191 addons.manager DEBUG Starting provider: PluginProvider
1467191370191 addons.manager DEBUG Registering shutdown blocker forPluginProvider
1467191370192 addons.manager DEBUG Provider finished startup: PluginProvider
1467191370192 addons.manager DEBUG Completed startup sequence
1467191370358 addons.xpi-utils DEBUG Starting async load of XPI databaseC:UsersgAppDataLocalTempanonymous2859161723742249731webdriver-profileextensions.json
*** Blocklist::_loadBlocklistFromFile:blocklist is disabled
1467191370449 addons.manager DEBUG Starting provider: <unnamed-provider>
1467191370449 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1467191370449 addons.manager DEBUG Provider finished startup:<unnamed-provider>
1467191370544 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1467191370544 addons.xpi-utils DEBUG Finished async read of XPI database,parsing...
1467191370546 addons.xpi-utils DEBUG Successfully read XPI database
1467191370613 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1467191370613 addons.manager DEBUG Registering shutdown blocker forPreviousExperimentProvider
1467191370613 addons.manager DEBUG Provider finished startup:PreviousExperimentProvider
JavaScript warning:https://normandy.cdn.mozilla.net/static/js/bundles/selfrepair-7575f6d27445b45bcffb.js,line 9825: mutating the [[Prototype]] of an object will cause your code to runvery slowly; instead create the object with the correct initial [[Prototype]]value using Object.create
atorg.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
...8 more
Java代碼片段:WebDriver driver = new FirefoxDriver();
EventFiringWebDriver eventFiringWebDriver = new EventFiringWebDriver(
driver);
EventListener eventListener = new EventListener();
eventFiringWebDriver.register(eventListener);
eventFiringWebDriver.get("http://www.sogou.com");
eventFiringWebDriver.get("http://www.google.com");
Q1.Conclusion: Google server problem!
Q2.firefox最新版本不兼容selenium2.0webdriver;我用的是37.0.2。43.0版本以上都被Mozilla Firefox隱私瀏覽模式攔截掉,Selenium-IDE也安裝失敗,代碼也驅動不起來。
It stuck mefeeling as extremely funny and antic !
Until changer back Firefox_37.0.2 version, which run without anything problem !
For example,
log4j:WARN No appenders could be foundfor logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4jsystem properly.
After Navigate Tohttp://www.sogou.com
After Navigate Tohttp://www.baidu.com
After Navigate Back Tohttps://www.sogou.com/?pid=sogou-clse-55a0df4b5a1786cd
After Click On
六月 30, 2016 10:43:39 上午 org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder
信息: Command failed to closecleanly. Destroying forcefully (v2).org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@45ecc727
推薦閱讀:
※Windows中更改hosts文件 屏蔽害人網站
※修改 hosts 文件可以上一些牆內屏蔽的網站,其原理是什麼?
※Error message when you visit a Web site that is hosted on IIS 7.0:
※主機名由localhost變成bogon是怎麼回事,怎樣變回localhost這個名字?
TAG:host |