【发布时间】:2015-03-17 14:08:39
【问题描述】:
我的项目使用 selenium-client-driver 0.9,基于 selenium 的集成测试将由 maven 使用 maven-selenium-plugin 执行。 (stackoverflow 中已经有很多问题,但找不到相关的答案)。 Selenium 测试用例失败并出现错误 引起:org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException:锁定文件仍然存在! C:\Users\nagappan.s\AppData\Local\Temp\customProfileDir23d2b92949d74270915586b2a3f2073a\parent.lock 在 org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFileLockToGoAway(FirefoxChromeLauncher.java:318) 在 org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:365) ... 20 更多
【问题讨论】:
-
我不知道为什么它是专门的......我已经阅读了stackoverflow的所有答案并尝试过但没有成功。俗话说,如果我们在 Firefox 中使用配置文件并尝试打开另一个文件锁定文件将不允许它发生。但是在关闭所有 Firefox 窗口后,它也会以同样的方式发生。它也有不推荐使用的版本,它没有任何支持,我不能转移到新版本的 java。