因此,由于某种原因,我的脚本在运行它时会给出当前的错误。这是一个打开浏览器的selenium项目,headless.It工作得很好。
DevTools listening on ws://127.0.0.1:50010/devtools/browser/a0bd7321-8810-4867-9a1a-44830cabb881
[0531/093705.662:INFO:CONSOLE(483)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (483)
[0531/093705.665:INFO:CONSOLE(483)] "The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (https://developers.google.com/web/updates/2017/12/audio-worklet)", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (483)
[0531/093705.668:INFO:CONSOLE(487)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (487)
[0531/093705.668:INFO:CONSOLE(488)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio", source: https://thesite/TSPD/082a057379ab2000e04675d6650b7d08e00fa87e834636f3276a953aff91cafadccfc9f4abbb23b7?type=8 (488)
[0531/093705.669:ERROR:web_contents_delegate.cc(225)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.我打算把这个网站叫做“the”,因为它是私有的。
发布于 2021-05-31 23:56:55
所以我找到了错误和信息的答案:CONSOLE。
对于我刚才添加的错误:
options.add_argument("--use-fake-ui-for-media-stream")对于信息:控制台:
options.add_argument("--log-level=3")https://stackoverflow.com/questions/67770491
复制相似问题