未知错误:无法写入prefs文件 [英] unknown error: failed to write prefs file
问题描述
在使用Runner运行功能测试时,始终出现以下错误: -硒2.44 -Chrome驱动程序 -Windows Server 2008 R2 Enterprise
I keep getting the error while running functional tests using runner with following: -selenium 2.44 -Chrome Driver -Windows Server 2008 R2 Enterprise
Error Description: Listening on 0.0.0.0:7000
Starting tunnel...
UnknownError: [POST http://test.com/wd/hub/session / {"de
siredCapabilities":{"browserName":"chrome","name":"tests/intern","idle-timeout":
60,"selenium-version":"2.44.0"}}] unknown error: failed to write prefs file
(Driver info: chromedriver=2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281ab
b7),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any
stacktrace information)
Command duration or timeout: 1.06 seconds
有人遇到过这样的问题吗?我该如何解决?请提出建议
Anyone have ever come across such issue? How do i fix this? Suggestions please
推荐答案
我最近遇到了同样的问题.该问题是由完整的C驱动器引起的.显然chromedriver在C驱动器(或chrome二进制文件所在的驱动器)中需要一些空间来创建临时配置文件等.
I've recently had the same issue. The problem was caused by full C drive. Apparently chromedriver needs some space in C drive (or the drive where chrome binary file is located) to create temporary profile files and so on.
解决方案之一可能是将chrome安装移至其他驱动器.您可以在命令行窗口中使用 mklink命令.
One of the solutions could be to move chrome installation to some other drive. You could use mklink command in command line window.
这篇关于未知错误:无法写入prefs文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!