gpt4 book ai didi

java - Selenium 2.48.2 +firefox 42 +浏览器没有被实例化

转载 作者:搜寻专家 更新时间:2023-11-01 03:01:16 25 4
gpt4 key购买 nike

我已经从 2.46.0 升级到 Selenium 2.48.2,并将 firefox 升级到最新版本 42。升级后,浏览器没有被实例化。

所有项目都会发生这种情况。我也尝试降级 firefox 和 selenium,但没有帮助。

请推荐!!

错误如下:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1447491412018 DeferredSave.extensions.json DEBUG Save changes
1447491412018 DeferredSave.extensions.json DEBUG Save changes
1447491412018 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"OsOdnf_TnA9t","location":"app-global","version":"42.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1447489593709,"updateDate":1447489593709,"applyBackgroundUpdates":1,"skinnable":true,"size":24301,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"42.0","maxVersion":"42.0"}],"targetPlatforms":[]}
1447491412018 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1447491412020 addons.xpi DEBUG New add-on fiddlerhook@fiddler2.com installed in winreg-app-global
1447491412030 addons.xpi WARN Disabling foreign installed add-on fiddlerhook@fiddler2.com in winreg-app-global
1447491412030 addons.xpi-utils DEBUG Make addon winreg-app-global:fiddlerhook@fiddler2.com visible
1447491412030 DeferredSave.extensions.json DEBUG Save changes
1447491412030 DeferredSave.extensions.json DEBUG Save changes
1447491412030 addons.xpi DEBUG Updating XPIState for {"id":"fiddlerhook@fiddler2.com","syncGUID":"mZKE2ni5yBIT","location":"winreg-app-global","version":"2.5.1.8","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":"chrome://fiddlerhook/content/about.xul","iconURL":"chrome://fiddlerhook/content/fiddlerhook.png","icon64URL":null,"defaultLocale":{"name":"FiddlerHook","description":"Integrate Fiddler into Firefox","creator":"Telerik","homepageURL":"https://fiddler2.com/r/?FIDDLERHOOKHELP"},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","installDate":1441879129965,"updateDate":1441879129965,"applyBackgroundUpdates":1,"bootstrap":false,"size":33903,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"4.0","maxVersion":"42.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":0}
1447491412031 addons.xpi DEBUG Updating database with changes to installed add-ons
1447491412031 addons.xpi-utils DEBUG Updating add-on states
1447491412037 addons.xpi-utils DEBUG Writing add-ons list
1447491412059 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1447491412059 addons.manager DEBUG Provider finished startup: XPIProvider
1447491412059 addons.manager DEBUG Starting provider: LightweightThemeManager
1447491412059 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1447491412059 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1447491412060 addons.manager DEBUG Starting provider: GMPProvider
1447491412066 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1447491412067 addons.manager DEBUG Provider finished startup: GMPProvider
1447491412067 addons.manager DEBUG Starting provider: PluginProvider
1447491412067 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1447491412067 addons.manager DEBUG Provider finished startup: PluginProvider
1447491412068 addons.manager DEBUG Completed startup sequence

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:223)

最佳答案

根据我的经验,Selenium Webdriver 不支持最新版本的 Firefox。尝试降级到更少的以前版本。您可以尝试检查 CHANGELOG Selenium,他们提到了一些可能会工作的版本。

然后,如果您想要特定的旧版 Firefox,请转到他们的 previous versions page .

关于java - Selenium 2.48.2 +firefox 42 +浏览器没有被实例化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33706711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com