0
我無法訪問Selenium IDE 2.9.1(Firefox 48.0,Win 10)中的文件打開對話框。在此錯誤信息文件>打開結果:Selenium IDE無法打開測試套件(無文件打開對話框)
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
[email protected]://selenium-ide/content/file-utils.js:32:5
[email protected]://selenium-ide/content/tools.js:102:31
[email protected]://selenium-ide/content/application.js:259:20
[email protected]://selenium-ide/content/editor.js:489:5
[email protected]://selenium-ide/content/editor.js:366:9
[email protected]://global/content/globalOverlay.js:100:7
[email protected]://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]
有沒有人有一個線索,什麼是錯的嗎?
該文件保存在哪裏,並且您之前從那裏打開文件時遇到問題?看了一下後,我發現有些人在從網絡位置打開文件時遇到同樣的問題 – Jsmith2800
它是我本地硬盤上的html-TestSuite-File。但是,在我能夠打開任何路徑之前發生問題:文件打開對話框根本沒有出現 - 只有上面粘貼的錯誤框。 – Andreas
在這種情況下,在一個新的Firefox標籤類型:配置,而且一旦在那裏搜索: extensions.selenium-ide.testCaseDirectory 和 extensions.selenium-ide.testSuiteDirectory 檢查文件路徑存在,並確保這是一個有效的。它們控制打開文件時的默認位置,這可能是一個問題。 – Jsmith2800