windows - docker for windows 运行量角器自动化
问题描述
我正在尝试在 windows docker 容器上运行 protractor e2e 并得到以下错误。该错误似乎与缺少 Windows Media 功能有关。有没有办法配置 Windows 媒体功能?操作系统版本:10.0.17763 不适用 内部版本 17763
[15:44:45] I/launcher - Running 1 instances of WebDriver
[15:44:45] I/direct - Using ChromeDriver directly...
[1207/154446.081:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
DevTools listening on ws://127.0.0.1:50792/devtools/browser/0ebdd350-4af1-4680-a2f7-e5d9d4b47b0a
[1207/154446.222:ERROR:dxva_video_decode_accelerator_win.cc(1368)] DXVAVDA fatal error: could not LoadLibrary: mf.dll: The specified module could not be found. (0x7E)
[1207/154446.222:ERROR:dxva_video_decode_accelerator_win.cc(1368)] DXVAVDA fatal error: could not LoadLibrary: mfplat.dll: The specified module could not be found. (0x7E)
[1207/154446.237:ERROR:dxva_video_decode_accelerator_win.cc(1368)] DXVAVDA fatal error: could not LoadLibrary: msmpeg2vdec.dll: The specified module could not be found. (0x7E)
[1207/154446.237:ERROR:dxva_video_decode_accelerator_win.cc(1372)] DXVAVDA fatal error: could not LoadLibrary: dxva2.dll: The specified module could not be found. (0x7E)
[1207/154446.237:ERROR:network_change_notifier_win.cc(142)] WSALookupServiceBegin failed with: 0
[1207/154446.237:ERROR:dxva_video_decode_accelerator_win.cc(1376)] DXVAVDA fatal error: could not LoadLibrary: msvproc.dll: The specified module could not be found. (0x7E)
[1207/154446.331:ERROR:platform_font_skia.cc(343)] Could not find any font: Segoe UI, sans. Falling back to the default
[15:44:48] W/launcher - Ignoring uncaught error WebDriverError: unknown error: Chrome failed to start: crashed.
(chrome not reachable)
(The process started from chrome location C:\Program Files\Chromium\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378}),platform=Windows NT 10.0.17763 x86_64)
解决方案
推荐阅读
- jupyter-notebook - 如何在 GCP AI 平台 Jupyter notebook 中挂载 Cloud Filestore?
- reactjs - WebWorker (react) 中的 Promise 抛出 babel/webpack 错误
- flutter - 颤振对“this”表达式的无效引用
- javascript - 使用破折号访问嵌套的 json 属性
- node.js - 将 ESM 模块与 Coffeescript 和 Node.js 一起使用
- flutter - Flutter - 自定义切换按钮选择
- laravel-nova - 使用空字符串作为字段的默认值更新 Nova 资源
- javascript - 当相同的逻辑在函数之外工作时,为什么这个函数不能工作?
- swift - A @State static property is being reinitiated without notice
- python - `ctags` 没有 `options` 参数,无法构建工作区符号