我正在尝试用Lighthouse打开默认的网络浏览器Chrome,而不是一个无头浏览器,因为我需要登录到我的Google帐户
--要传递给chrome的chrome标志自定义标志(以空格分隔)。
查看下面的链接,了解--chrome标志
https://github.com/GoogleChrome/lighthouse
stream = os.popen('lighthouse --chrome-flags="--headless"--disable-storage-reset="true" --preset=' +
preset + ' --output=json --output-path='+relative_path + name+'_'+getdate+'.report.json ' + url)
如何更改“--chrome标志”以打开已安装的chrome应用程序,而不是一个无头应用程序
尝试将
chrome-flags=" headless"
更改为chrome-flags=" headed"
相关问题 更多 >
编程相关推荐