量角器无法启动Firefox:
可以帮忙吗?
at protractor.conf.js, I have:
capabilities: {
'browserName': 'firefox'
}
使用chrome可以正常工作。
[12:40:28] I/update - chromedriver: file exists Z:\GIT\biblioteca_app\Neadvance\ClientApp\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.40.zip
[12:40:28] I/update - chromedriver: unzipping chromedriver_2.40.zip
[12:40:28] I/update - chromedriver: chromedriver_2.40.exe up to date
(node:190100) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[12:40:29] I/launcher - Running 1 instances of WebDriver
[12:40:29] I/direct - Using FirefoxDriver directly...
[12:40:29] E/direct - Error code: 135
[12:40:29] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
[12:40:29] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
at Direct.getNewDriver (Z:\GIT\biblioteca_app\Neadvance\ClientApp\node_modules\protractor\built\driverProviders\direct.js:91:31)
at Runner.createBrowser (Z:\GIT\biblioteca_app\Neadvance\ClientApp\node_modules\protractor\built\runner.js:195:43)
以上问题是当我在Visual Studio中运行“ ng e2e”时。
如果我运行“量角器protractor.conf.js”,则会遇到不同的问题:
(node:194784) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[13:24:14] I/launcher - Running 1 instances of WebDriver
[13:24:14] I/direct - Using FirefoxDriver directly...
Jasmine started
Biblioteca App
× Validate Main layout
- Failed: waiting for page to load for 10000ms
Wait timed out after 10000ms
Wait timed out after 10000ms
答案 0 :(得分:0)
此问题的解决方案在“ https://github.com/angular/protractor/issues/4868#issuecomment-403003116”中
我无法确认我的回答。 如果您有时间,请确认。