简体   繁体   English

关于运行Google Chrome 59无头模式的警告

[英]Warning on running Google Chrome 59 headless mode

I want to use Google Chrome headless mode. 我想使用Google Chrome无头模式。

I type this. 我输入这个。

google-chrome --headless --disable-gpu --dump-dom --no-sandbox http://google.com

and it always show warning in the first output like below. 并且总是在第一个输出中显示警告,如下所示。

[0722/222841.700788:WARNING:audio_manager.cc(293)] Multiple instances of AudioManager detected
[0722/222841.700844:WARNING:audio_manager.cc(254)] Multiple instances of AudioManager detected

What causing that? 是什么原因造成的? I want to have clean output of the DOM. 我想要干净的DOM输出。

Try read this tutorial https://developers.google.com/web/updates/2017/04/headless-chrome It can depends from your OS. 尝试阅读本教程https://developers.google.com/web/updates/2017/04/headless-chrome可能取决于您的操作系统。 Mac and Windows have some specific. Mac和Windows有一些特定的功能。 As for now, i can run your command without any problem on MacOS. 就目前而言,我可以在MacOS上毫无问题地运行您的命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM