我正在按照简单的步骤运行聚合物测试,但我遇到了问题(https://www.polymer-project.org/1.0/docs/tools/tests)。stackoverflow 中很少有关于类似问题没有回答的问题。
Polymer Web 组件测试器无法连接到 selenium
如果相关,我使用的是 Windows 7 和聚合物 2。
当我运行时:
1 - 聚合物测试 -l 铬
导致访问 microsoft 时出错。好吧,很奇怪,因为我只指定了 chrome
Error: Could not request headers from https://download.microsoft.com/download/D/
4/1/D417998A-58EE-4EFE-A7CC-39EF9E020768/MicrosoftWebDriver.exe: Error: getaddri
nfo ENOTFOUND download.microsoft.com download.microsoft.com:443
2 - 聚合物测试--skip-selenium-install
\u00276.1\u0027, java.version: \u00271.8.0_172\u0027\nDriver info: driver.versi
on: unknown","error":"session not created"},"status":33}
at C:\Users\D-CA69TO\AppData\Roaming\npm\node_modules\polymer-cli\node_modul
es\web-component-tester\runner\steps.js:170:27
at Generator.next (<anonymous>)
at fulfilled (C:\Users\D-CA69TO\AppData\Roaming\npm\node_modules\polymer-cli
\node_modules\web-component-tester\runner\steps.js:4:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)