首页 > 解决方案 > 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)

标签: windowsdockergoogle-chromeprotractor

解决方案


推荐阅读