Selenium IDE 无法打开测试套件(无文件打开对话框)

Selenium IDE fails to open a test suite (no file open dialog)

我无法访问 Selenium IDE 2.9.1(Firefox 48.0,Win 10)中的文件打开对话框。文件 > 打开导致此错误消息:

There was an unexpected error. Msg: NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
Url: chrome://selenium-ide/content/file-utils.js, line: 32
FileUtils.getFile@chrome://selenium-ide/content/file-utils.js:32:5
showFilePicker@chrome://selenium-ide/content/tools.js:102:31
Application.prototype.loadTestCaseWithNewSuite@chrome://selenium-ide/content/application.js:259:20
Editor.prototype.loadRecentTestCase@chrome://selenium-ide/content/editor.js:489:5
Editor.controller.doCommand@chrome://selenium-ide/content/editor.js:366:9
goDoCommand@chrome://global/content/globalOverlay.js:100:7
oncommand@chrome://selenium-ide/content/selenium-ide.xul:1:1

文件 > 打开测试套件导致更短的错误:

error loading test suite: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: chrome://selenium-ide/content/file-utils.js :: FileUtils.getFile :: line 32"  data: no]

有人知道这里出了什么问题吗?

在新的 Firefox 选项卡中输入 about:config,然后在那里搜索:extensions.selenium-‌ ide.testCaseDirectory 和 extensions.selenium-‌ ide.testSuiteDirector‌ y 检查那里的文件路径并确保它是有效的。它们控制着您打开文件时的默认位置,这可能是个问题。