セレンのWebドライバjarsファイルを使用してJavaアプリケーションを実行すると、コンソールにエラーが表示されます これに対して解決策はありますか?二つの問題セレンウェブドライバを使用してJavaアプリケーションをインポートしました
- ファイアーフォックスパスが はFF
webdriverをのパスを指定することで、これを試すfirefox.exeをするために、この再チェックのパスを修正するために間違って存在でき
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"26.0","maxVersion":"47.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}
1461298595367 DeferredSave.extensions.json DEBUG Save changes
1461298595367 addons.xpi DEBUG Updating database with changes to installed add-ons
1461298595367 addons.xpi-utils DEBUG Updating add-on states
1461298595369 addons.xpi-utils DEBUG Writing add-ons list
1461298595374 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1461298595376 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.1.14
1461298595392 addons.manager DEBUG Starting provider: <unnamed-provider>
1461298595392 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1461298595392 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1461298595408 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1461298595408 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298595476 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1461298595476 addons.manager DEBUG Provider finished startup: XPIProvider
1461298595476 addons.manager DEBUG Starting provider: LightweightThemeManager
1461298595476 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1461298595476 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1461298595477 addons.manager DEBUG Starting provider: GMPProvider
1461298595485 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1461298595486 addons.manager DEBUG Provider finished startup: GMPProvider
1461298595486 addons.manager DEBUG Starting provider: PluginProvider
1461298595486 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1461298595487 addons.manager DEBUG Provider finished startup: PluginProvider
1461298595488 addons.manager DEBUG Completed startup sequence
1461298596837 DeferredSave.extensions.json DEBUG Write succeeded
1461298596837 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1461298596837 DeferredSave.extensions.json DEBUG Starting timer
1461298596850 addons.repository DEBUG No addons.json found.
1461298596851 DeferredSave.addons.json DEBUG Save changes
1461298596855 DeferredSave.addons.json DEBUG Starting timer
1461298596928 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1461298596928 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1461298596929 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1461298596937 DeferredSave.extensions.json DEBUG Starting write
1461298596937 DeferredSave.addons.json DEBUG Starting write
1461298597024 DeferredSave.extensions.json DEBUG Write succeeded
1461298597029 DeferredSave.addons.json DEBUG Write succeeded
1461298603744 addons.xpi DEBUG Calling bootstrap method shutdown on [email protected] version 1.1.14
1461298603749 addons.xpi DEBUG Calling bootstrap method shutdown on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298604018 addons.manager DEBUG shutdown
1461298604018 addons.manager DEBUG Calling shutdown blocker for <unnamed-provider>
1461298604018 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1461298604019 addons.xpi DEBUG shutdown
1461298604019 addons.xpi-utils DEBUG shutdown
1461298604019 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1461298604020 addons.manager DEBUG Calling shutdown blocker for GMPProvider
1461298604021 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1461298604023 addons.manager DEBUG Calling shutdown blocker for PreviousExperimentProvider
1461298604025 addons.xpi DEBUG Notifying XPI shutdown observers
1461298604031 addons.manager DEBUG Async provider shutdown done
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at mySecondProgram.SeleniumFirstProject.main(SeleniumFirstProject.java:13)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"26.0","maxVersion":"47.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}
1461298595367 DeferredSave.extensions.json DEBUG Save changes
1461298595367 addons.xpi DEBUG Updating database with changes to installed add-ons
1461298595367 addons.xpi-utils DEBUG Updating add-on states
1461298595369 addons.xpi-utils DEBUG Writing add-ons list
1461298595374 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1461298595376 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.1.14
1461298595392 addons.manager DEBUG Starting provider: <unnamed-provider>
1461298595392 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1461298595392 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1461298595408 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1461298595408 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298595476 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1461298595476 addons.manager DEBUG Provider finished startup: XPIProvider
1461298595476 addons.manager DEBUG Starting provider: LightweightThemeManager
1461298595476 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1461298595476 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1461298595477 addons.manager DEBUG Starting provider: GMPProvider
1461298595485 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1461298595486 addons.manager DEBUG Provider finished startup: GMPProvider
1461298595486 addons.manager DEBUG Starting provider: PluginProvider
1461298595486 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1461298595487 addons.manager DEBUG Provider finished startup: PluginProvider
1461298595488 addons.manager DEBUG Completed startup sequence
1461298596837 DeferredSave.extensions.json DEBUG Write succeeded
1461298596837 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1461298596837 DeferredSave.extensions.json DEBUG Starting timer
1461298596850 addons.repository DEBUG No addons.json found.
1461298596851 DeferredSave.addons.json DEBUG Save changes
1461298596855 DeferredSave.addons.json DEBUG Starting timer
1461298596928 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1461298596928 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1461298596929 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1461298596937 DeferredSave.extensions.json DEBUG Starting write
1461298596937 DeferredSave.addons.json DEBUG Starting write
1461298597024 DeferredSave.extensions.json DEBUG Write succeeded
1461298597029 DeferredSave.addons.json DEBUG Write succeeded
1461298603744 addons.xpi DEBUG Calling bootstrap method shutdown on [email protected] version 1.1.14
1461298603749 addons.xpi DEBUG Calling bootstrap method shutdown on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298604018 addons.manager DEBUG shutdown
1461298604018 addons.manager DEBUG Calling shutdown blocker for <unnamed-provider>
1461298604018 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1461298604019 addons.xpi DEBUG shutdown
1461298604019 addons.xpi-utils DEBUG shutdown
1461298604019 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1461298604020 addons.manager DEBUG Calling shutdown blocker for GMPProvider
1461298604021 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1461298604023 addons.manager DEBUG Calling shutdown blocker for PreviousExperimentProvider
1461298604025 addons.xpi DEBUG Notifying XPI shutdown observers
1461298604031 addons.manager DEBUG Async provider shutdown done
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52'
System info: host: 'DESKTOP-CH3D0C4', ip: '192.168.0.6', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_71'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at mySecondProgram.SeleniumFirstProject.main(SeleniumFirstProject.java:13)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"26.0","maxVersion":"47.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}
1461298595367 DeferredSave.extensions.json DEBUG Save changes
1461298595367 addons.xpi DEBUG Updating database with changes to installed add-ons
1461298595367 addons.xpi-utils DEBUG Updating add-on states
1461298595369 addons.xpi-utils DEBUG Writing add-ons list
1461298595374 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1461298595376 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.1.14
1461298595392 addons.manager DEBUG Starting provider: <unnamed-provider>
1461298595392 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1461298595392 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1461298595408 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1461298595408 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298595476 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1461298595476 addons.manager DEBUG Provider finished startup: XPIProvider
1461298595476 addons.manager DEBUG Starting provider: LightweightThemeManager
1461298595476 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1461298595476 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1461298595477 addons.manager DEBUG Starting provider: GMPProvider
1461298595485 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1461298595486 addons.manager DEBUG Provider finished startup: GMPProvider
1461298595486 addons.manager DEBUG Starting provider: PluginProvider
1461298595486 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1461298595487 addons.manager DEBUG Provider finished startup: PluginProvider
1461298595488 addons.manager DEBUG Completed startup sequence
1461298596837 DeferredSave.extensions.json DEBUG Write succeeded
1461298596837 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1461298596837 DeferredSave.extensions.json DEBUG Starting timer
1461298596850 addons.repository DEBUG No addons.json found.
1461298596851 DeferredSave.addons.json DEBUG Save changes
1461298596855 DeferredSave.addons.json DEBUG Starting timer
1461298596928 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1461298596928 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1461298596929 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1461298596937 DeferredSave.extensions.json DEBUG Starting write
1461298596937 DeferredSave.addons.json DEBUG Starting write
1461298597024 DeferredSave.extensions.json DEBUG Write succeeded
1461298597029 DeferredSave.addons.json DEBUG Write succeeded
1461298603744 addons.xpi DEBUG Calling bootstrap method shutdown on [email protected] version 1.1.14
1461298603749 addons.xpi DEBUG Calling bootstrap method shutdown on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.0.0.9103
1461298604018 addons.manager DEBUG shutdown
1461298604018 addons.manager DEBUG Calling shutdown blocker for <unnamed-provider>
1461298604018 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1461298604019 addons.xpi DEBUG shutdown
1461298604019 addons.xpi-utils DEBUG shutdown
1461298604019 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1461298604020 addons.manager DEBUG Calling shutdown blocker for GMPProvider
1461298604021 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1461298604023 addons.manager DEBUG Calling shutdown blocker for PreviousExperimentProvider
1461298604025 addons.xpi DEBUG Notifying XPI shutdown observers
1461298604031 addons.manager DEBUG Async provider shutdown done
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
... 7 more
は、あなたのFirefoxが開いているが、Firefoxは空白のページを示すのですか? –
はい、私は、Javaアプリケーションを実行するたびに、Firefoxのブラウザが開き、Eclipseのコンソールでこれらのエラーをすべて取得しています。 – user6238728