Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法再启动Firefox webdriver,因为Java上的配置文件未完全清除_Firefox_Firefox Addon_Selenium Webdriver - Fatal编程技术网

无法再启动Firefox webdriver,因为Java上的配置文件未完全清除

无法再启动Firefox webdriver,因为Java上的配置文件未完全清除,firefox,firefox-addon,selenium-webdriver,Firefox,Firefox Addon,Selenium Webdriver,尊敬的Selenium网络驱动程序专家: 我无法再启动/实例化Firefox webdriver,第4行出现以下错误: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port 7055 after 45000 ms. Firefox console output: *** LOG addons.manager: Application has been upgra

尊敬的Selenium网络驱动程序专家:

我无法再启动/实例化Firefox webdriver,第4行出现以下错误:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port
7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\DOCUME~1
\george\LOCALS~1\Temp\anonymous464046490888820385webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on {20a82645-c095-46ed-80e3-08825760534b} installed in winreg-app- 
    global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
4.  WebDriver driver = new FirefoxDriver();
5.  driver.get("http://www.abc.com/index.htm");
请注意,webdriver无法控制Firefox浏览器而不崩溃,即使它是在没有任何内容的情况下打开的。i、 e.无法通过4号线

下面是代码片段,它在过去工作过,但在第4行崩溃:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port
7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\DOCUME~1
\george\LOCALS~1\Temp\anonymous464046490888820385webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on {20a82645-c095-46ed-80e3-08825760534b} installed in winreg-app- 
    global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
4.  WebDriver driver = new FirefoxDriver();
5.  driver.get("http://www.abc.com/index.htm");
在使用命令“Firefox.exe–p”访问Firefox配置文件管理器删除文件夹“E:\Mozilla Firefox Profile”和Firefox配置文件后,出现了此问题。但是,Firefox Profile Manager似乎也在我的主文件夹中创建了许多文件夹,如“C:\DOCUME~1\george\LOCALS~1\Temp\anonymous464046490888820385webdriver-Profile\extensions\webdriver staging”,这些文件夹已不复存在

因此,我需要您在以下方面协助解决此问题:

(i)如何干净地清除/删除所有Firefox配置文件查找/设置引用,并简单地启动/实例化通用(无配置文件)Firefox浏览器以成功通过第4行。 (ii)注意到“系统代理设置”是在Firefox由Firefox Webdriver启动/打开时设置的,这表明它仍然在使用来自某个位置的配置文件,但不知道是什么&在哪里。然而,手动打开Firefox时设置了“无代理”

Firefox配置文件最初是为了在SeleniumWebDriver中启动/调用Firebug和Firepath时,可以在浏览器中激活/包含Firebug和Firepath

我在WindowsXP&7平台上运行Java1.7.0_11和SeleniumWebDriver 2.25.0

非常感谢您的帮助

谢谢


George

您的firefox版本已升级,selenium不支持该版本。因此,降级到版本15(根据我的使用情况,支持的最高版本)。它会很好用的

您可以从下载所需版本的firefox


要停止自动更新firefox,请卸载Mozilla维护服务(在Windows中)&在
工具->选项->高级->更新选项卡中,禁用更新检查插件和firefox

在哪里可以找到firefox 15下载?尽管四处搜索,我还是找不到任何网站。如何防止Firefox自动更新到最新版本?非常感谢您的帮助。在中找到Firefox 15。在中找到关于关闭自动更新的说明。