对于Google Chrome浏览器的一般支持是OFF-TOPIC。 CHROME操作系统和铬是关闭主题。 google-chrome适用于与使用Chrome浏览器进行开发相关的问题。有关使用Chrome浏览器或配置Chrome浏览器的问题应发布在https://superuser.com上。有关[google-chrome-os]或[chromium]的问题应该使用这些标签。 Google Chrome浏览器是一种使用Blink渲染引擎的网络浏览器。
如何使用 Chrome 扩展程序删除我的网站在 Chrome 中保存的密码?
我正在开发 Chrome 扩展程序,我想删除 Chrome 密码管理器中与我的网站关联的所有已保存密码。我的目标是确保我的网站没有凭据......
如何使用代理从命令行启动 Chrome 用户?我尝试了 chrome --proxy-server="https://206.246.75.178:3129" 但是不起作用,因为没有设置代理。
当我从 Chrome 打印时,有些行丢失了。 当我导出为 PDF 文件,然后从 Acrobat 打印该文件时,没有丢失行。 对于任何给定的网页,Chrome 总是一样的
我正在构建一个包含 Chrome 的 Docker 镜像。 该图像在我的本地计算机上完美运行,但是当部署到服务器时,Chrome 无法启动并出现以下错误: [301:301:1224/210431。
我编写了一个使用本地存储的 Chrome 扩展。 当我在浏览器中打开 chrome://policy/ 时,我可以根据扩展程序的 ID 查看扩展程序的数据,但是,当我手动更改该值时...
我有一个带有 tr 的表格,该表格被缩小并可以作为菜单打开,我的问题是在我的代码中,我将 tr 放在绝对位置,并带有溢出剪辑,并将内容放在相对位置,它
selenium.common.exceptions.SessionNotCreatedException:消息:会话未创建:ChromeDriver Chrome Selenium 没有匹配功能错误
首先,机器和包装规格: 我正在运行: Chrome驱动程序版本75.0.3770.140 硒:版本“3.141.0” Windows 10 的 WSL(Linux 子系统) 我正在尝试通过 selen 运行 chromebrowser...
迭代非常大的对象(100 万个键)时,Chromium 132 中存在错误
chrome 132 中似乎有一个错误,对于非常大的对象(100 万个键)。 铬132.0.6834.84 V8 13.2.152.27 火狐浏览器工作正常 这是一个最小的重现。 由于某种原因,第一次...
以下 HTML5 代码有效。它允许用户使用 HTML5 type="number" 输入类型捕获小数。这是通过 step 属性实现的: 以下 HTML5 代码有效。它允许用户使用 HTML5 type="number" 输入类型捕获小数。这是通过 step 属性实现的: <input value="" name="turnover" id="turnover" placeholder="0" type="number" step="0.01"> 问题是在南非,我们使用句点(.)作为小数,而不是逗号(,)。不幸的是,Chrome 不允许使用句点并强制用户使用逗号。显然,其他一些浏览器使用您在步骤属性中使用的任何小数点分隔符。似乎不是 Chrome。 有什么想法可以解决这个问题吗? 您必须将该输入元素的 lang 属性指定为其中句点表示小数而不是逗号的国家/地区的属性,例如。英语 (en) <input type="number" step="0.01" min="0" lang="en"> 您是否尝试过设置页面的文化代码?假设您的网站主要服务南非游客...? 这是我能想到的最接近的解决方案,可以达到相同的效果。它通过模式属性使用带有正则表达式的文本属性,而不是 HTML5 数字属性。 对于货币(或小数点后两位): <input type="text" value="0" name="turnover" placeholder="0" pattern="\d+(\.\d{2})?"/> 对于科学(或小数点后 6 位) <input type="text" value="0" name="turnover" placeholder="0" pattern="\d+(\.\d{6})?"/> 对于任何小数位 <input type="text" value="0" name="turnover" placeholder="0" pattern="\d+(\.\d+)?"/> 希望这有帮助。如果您有更好的解决方案,请留言! 就我而言,我使用网络工具从图中提取数据点(一个名为 WebPlotDigitizer 的网站)。当我提取数据点时,它们以逗号作为小数点分隔符显示。解决方案是将 Chrome 的首选语言从“西班牙语”更改为英语,因此它认为默认的小数分隔符是点
我有一个网络应用程序,可以在桌面 Chrome 浏览器、iPhone 和 iPad 浏览器以及 Android 内置浏览器上完美运行。 然而,当我尝试在新的 Android Chrome 上运行它时......
自从最新的 Chrome 版本以来,我的网站中的 SVG 元素开始出现问题。 SVG 似乎无法在某些屏幕尺寸下正确缩放,并且当我调整窗口大小时会闪烁。在我的
我有一个网站,有一个主题切换器(深色、浅色和重置到操作系统),效果很好。在 MacOS 中,我通常将主题设置为深色,只有 Chrome 永远不会为具有...的网站加载深色主题。
我不明白如何修复这个错误,它只是不想启动 我尝试重新登录Google Drive,再次重新启动,但我害怕进入代码,因为我不懂python,也许
有没有办法在 Chrome 中抑制 sec-ch-ua* 标头?
我没有成功使用用户代理切换器和管理器扩展来呈现具有移动友好界面的 Web 应用程序。经过进一步挖掘,我注意到虽然......
Chrome 浏览器开发者工具在应用程序选项卡下有一个测试推送通知的选项。我有一个正在运行的注册服务工作者可以处理收到的推送通知,但它......
我正在尝试以分块模式发送数据。所有标头均已正确设置,数据也已相应编码。浏览器将我的响应识别为分块响应,接受标头并开始接收数据。 ...
按照此处找到的说明,我构建了一个书签,可以打开一个依赖于日期的网站。该小书签是书签文件夹中的一个,我将单击以打开该文件夹的每个书签...
我正在 docker 容器中运行 chrome 浏览器,我想查看它。我设置了9222端口用于远程调试。我必须删除 --healess 选项,但现在 chrome 无法启动。如何...
如何使用selenium从Chrome webdriver获取console.trace()结果?
我正在研究一些研究问题,这需要我在某些 JavaScript 更改 DOM 树时获取准确的堆栈跟踪。 我设法使用 MutationObserver 梳取得了满意的结果...
我一直在尝试使用 puppeteer 的 CDPSession 获取 DOM.shadowRootPushed 事件。 这是加载的包含 ShadowRoot 的页面: ...</desc> <question vote="0"> <p>我一直在尝试使用 <pre><code>DOM.shadowRootPushed</code></pre> 中的 <pre><code>CDPSession</code></pre> 获取 <pre><code>puppeteer</code></pre> 事件。 这是加载的包含 ShadowRoot 的页面:</p> <pre><code><html> <head> <title> Page with Shadow Root </title> </head> <body> <header id="host"> <h1>Hello DOM</h1> </header> </body> <script> var attachShadow = HTMLElement.prototype.attachShadow HTMLElement.prototype.attachShadow = function ( option ) { var sh = attachShadow.call( this, option ) console.info( '%s shadow attached to %s', option.mode, this ) //add a MutationObserver here return sh } setTimeout(function() { const host = document.getElementById('host'); const shadowRoot = host.attachShadow({mode: 'open'}); shadowRoot.innerHTML = '<h1>Hello Shadow DOM</h1>'; }, 3300); </script> </html> </code></pre> <p>并且,我正在使用此脚本来获取事件:</p> <pre><code>const puppeteer = require('puppeteer'); (async() => { // Use Puppeteer to launch a browser and open a page. const browser = await puppeteer.launch({ headless: false // userDataDir: "/home/w/.config/chromium/" }); const page = await browser.newPage(); // Create a raw DevTools protocol session to talk to the page. // Use CDP to set the animation playback rate. const session = await page.target().createCDPSession(); await session.send('Animation.enable'); await session.send('DOM.enable'); session.on('Animation.animationCreated', () => { console.log('Animation created!'); }); session.on('DOM.shadowRootPushed', () => { console.log('DOM.shadowRootPushed'); }); session.on('DOM.shadowRootPopped', () => { console.log('DOM.shadowRootPopped'); }); await session.send('Animation.setPlaybackRate', { playbackRate: 2, }); // Check it out! Fast animations on the "loading..." screen! // await page.goto('https://pptr.dev'); await page.goto('http://localhost:8000'); await wait(1115000) console.log("Done") })(); async function wait(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } </code></pre> <p>不过我得到了<pre><code>Animation.animationCreated</code></pre>。 CDP 网站称 <a href="https://chromedevtools.github.io/devtools-protocol/tot/DOM/#event-shadowRootPushed" rel="nofollow noreferrer">DOM.shadowRootPushed </a> 是一个实验性事件。是否需要在启动选项中传递标志? 依赖关系:</p> <pre><code> "dependencies": { "puppeteer": "8.0.0", "ws": "7.2.3" }, </code></pre> <p><pre><code>Chrome Version</code></pre>:<em>版本 90.0.4427.0(开发人员版本)(64 位)</em></p> <p>调试日志:</p> <pre><code>$ DEBUG=* node cdpsession.js puppeteer:protocol SEND ► {"method":"Target.setDiscoverTargets","params":{"discover":true},"id":1} +0ms puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"3462A6199ADAF347FD96DF0016967C81","type":"page","title":"","url":"about:blank","attached":false,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +41ms puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"3995d8d1-5e35-48ff-b5c6-faf339b9ec9a","type":"browser","title":"","url":"","attached":true}}} +1ms puppeteer:protocol ◀ RECV {"id":1,"result":{}} +0ms puppeteer:protocol SEND ► {"method":"Target.createTarget","params":{"url":"about:blank"},"id":2} +1ms puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"3462A6199ADAF347FD96DF0016967C81","type":"page","title":"about:blank","url":"about:blank","attached":false,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +6ms puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"","url":"about:blank","attached":false,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +13ms puppeteer:protocol ◀ RECV {"id":2,"result":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD"}} +11ms puppeteer:protocol SEND ► {"method":"Target.attachToTarget","params":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","flatten":true},"id":3} +0ms puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"","url":"about:blank","attached":true,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +18ms puppeteer:protocol ◀ RECV {"method":"Target.attachedToTarget","params":{"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"","url":"about:blank","attached":true,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"},"waitingForDebugger":false}} +1ms puppeteer:protocol ◀ RECV {"id":3,"result":{"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"}} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.enable","params":{},"id":4} +1ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.getFrameTree","params":{},"id":5} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":false,"flatten":true},"id":6} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Performance.enable","params":{},"id":7} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Log.enable","params":{},"id":8} +1ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.setInterceptFileChooserDialog","params":{"enabled":true},"id":9} +0ms puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"about:blank","url":"about:blank","attached":true,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +11ms puppeteer:protocol ◀ RECV {"id":9,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"id":4,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +13ms puppeteer:protocol ◀ RECV {"id":5,"result":{"frameTree":{"frame":{"id":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","url":"about:blank","securityOrigin":"://","mimeType":"text/html"}}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.setLifecycleEventsEnabled","params":{"enabled":true},"id":10} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Runtime.enable","params":{},"id":11} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Network.enable","params":{},"id":12} +0ms puppeteer:protocol ◀ RECV {"id":6,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"id":7,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Log.entryAdded","params":{"entry":{"source":"other","level":"error","text":"Site cannot be installed: Page is not served from a secure origin","timestamp":1618302904174.339,"url":"about:blank"}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":8,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","name":"commit","timestamp":195993.959226},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","name":"DOMContentLoaded","timestamp":195993.959313},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","name":"load","timestamp":195993.961627},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","name":"networkAlmostIdle","timestamp":195993.961976},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"C4BEDF25BD814B4DC16699169B6EF1F7","name":"networkIdle","timestamp":195993.961976},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":10,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"://","name":"","auxData":{"isDefault":true,"type":"default","frameId":"6DAD742822835DE715BE5F8B09EC00BD"}}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":11,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":12,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.addScriptToEvaluateOnNewDocument","params":{"source":"//# sourceURL=__puppeteer_evaluation_script__","worldName":"__puppeteer_utility_world__"},"id":13} +0ms puppeteer:protocol ◀ RECV {"id":13,"result":{"identifier":"1"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.createIsolatedWorld","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","grantUniveralAccess":true,"worldName":"__puppeteer_utility_world__"},"id":14} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"context":{"id":2,"origin":"","name":"__puppeteer_utility_world__","auxData":{"isDefault":false,"type":"isolated","frameId":"6DAD742822835DE715BE5F8B09EC00BD"}}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"id":14,"result":{"executionContextId":2},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Emulation.setDeviceMetricsOverride","params":{"mobile":false,"width":800,"height":600,"deviceScaleFactor":1,"screenOrientation":{"angle":0,"type":"portraitPrimary"}},"id":15} +1ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Emulation.setTouchEmulationEnabled","params":{"enabled":false},"id":16} +0ms puppeteer:protocol ◀ RECV {"method":"Page.frameResized","params":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"id":15,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":16,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol SEND ► {"method":"Target.attachToTarget","params":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","flatten":true},"id":17} +0ms puppeteer:protocol ◀ RECV {"method":"Target.attachedToTarget","params":{"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15","targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"about:blank","url":"about:blank","attached":true,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"},"waitingForDebugger":false}} +1ms puppeteer:protocol ◀ RECV {"id":17,"result":{"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"}} +0ms puppeteer:protocol SEND ► {"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15","method":"Animation.enable","params":{},"id":18} +1ms puppeteer:protocol ◀ RECV {"id":18,"result":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol SEND ► {"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15","method":"Page.enable","params":{},"id":19} +0ms puppeteer:protocol ◀ RECV {"id":19,"result":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +1ms puppeteer:protocol SEND ► {"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15","method":"DOM.enable","params":{},"id":20} +0ms puppeteer:protocol ◀ RECV {"id":20,"result":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol SEND ► {"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15","method":"Animation.setPlaybackRate","params":{"playbackRate":2},"id":21} +1ms puppeteer:protocol ◀ RECV {"id":21,"result":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +4ms puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Page.navigate","params":{"url":"http://localhost:8000","frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"id":22} +3ms puppeteer:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"requestId":"946E1DE1FC063361360B31998681705C","loaderId":"946E1DE1FC063361360B31998681705C","documentURL":"http://localhost:8000/","request":{"url":"http://localhost:8000/","method":"GET","headers":{"sec-ch-ua":"Chromium 78","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3882.0 Safari/537.36","Sec-Fetch-Dest":"document","Sec-Fetch-Mode":"navigate","Sec-Fetch-User":"?1"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"no-referrer-when-downgrade"},"timestamp":195994.030865,"wallTime":1618302904.223556,"initiator":{"type":"other"},"type":"Document","frameId":"6DAD742822835DE715BE5F8B09EC00BD","hasUserGesture":false},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +5ms puppeteer:protocol ◀ RECV {"method":"Network.responseReceivedExtraInfo","params":{"requestId":"946E1DE1FC063361360B31998681705C","blockedCookies":[],"headers":{"Server":"SimpleHTTP/0.6 Python/3.8.5","Date":"Tue, 13 Apr 2021 07:33:36 GMT","Content-type":"text/html","Content-Length":"656","Last-Modified":"Mon, 12 Apr 2021 17:02:56 GMT"},"headersText":"HTTP/1.0 200 OK\r\nServer: SimpleHTTP/0.6 Python/3.8.5\r\nDate: Tue, 13 Apr 2021 07:33:36 GMT\r\nContent-type: text/html\r\nContent-Length: 656\r\nLast-Modified: Mon, 12 Apr 2021 17:02:56 GMT\r\n\r\n"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"946E1DE1FC063361360B31998681705C","loaderId":"946E1DE1FC063361360B31998681705C","timestamp":195994.034773,"type":"Document","response":{"url":"http://localhost:8000/","status":200,"statusText":"OK","headers":{"Server":"SimpleHTTP/0.6 Python/3.8.5","Date":"Tue, 13 Apr 2021 07:33:36 GMT","Content-type":"text/html","Content-Length":"656","Last-Modified":"Mon, 12 Apr 2021 17:02:56 GMT"},"headersText":"HTTP/1.0 200 OK\r\nServer: SimpleHTTP/0.6 Python/3.8.5\r\nDate: Tue, 13 Apr 2021 07:33:36 GMT\r\nContent-type: text/html\r\nContent-Length: 656\r\nLast-Modified: Mon, 12 Apr 2021 17:02:56 GMT\r\n\r\n","mimeType":"text/html","connectionReused":false,"connectionId":0,"remoteIPAddress":"127.0.0.1","remotePort":8000,"fromDiskCache":true,"fromServiceWorker":false,"fromPrefetchCache":false,"encodedDataLength":0,"timing":{"requestTime":195994.031508,"proxyStart":-1,"proxyEnd":-1,"dnsStart":-1,"dnsEnd":-1,"connectStart":-1,"connectEnd":-1,"sslStart":-1,"sslEnd":-1,"workerStart":-1,"workerReady":-1,"sendStart":0.047,"sendEnd":0.047,"pushStart":0,"pushEnd":0,"receiveHeadersEnd":0.252},"protocol":"http/1.0","securityState":"secure"},"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"id":22,"result":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +2ms puppeteer:protocol ◀ RECV {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"6DAD742822835DE715BE5F8B09EC00BD","type":"page","title":"localhost:8000","url":"http://localhost:8000/","attached":true,"browserContextId":"9DD61B1C854229B47F6F3A16F46B1AF0"}}} +27ms puppeteer:protocol ◀ RECV {"method":"Page.frameStartedLoading","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +2ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"init","timestamp":195994.038172},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":1},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":2},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextsCleared","params":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.frameNavigated","params":{"frame":{"id":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","url":"http://localhost:8000/","securityOrigin":"http://localhost:8000","mimeType":"text/html"}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"context":{"id":3,"origin":"http://localhost:8000","name":"","auxData":{"isDefault":true,"type":"default","frameId":"6DAD742822835DE715BE5F8B09EC00BD"}}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"context":{"id":4,"origin":"://","name":"__puppeteer_utility_world__","auxData":{"isDefault":false,"type":"isolated","frameId":"6DAD742822835DE715BE5F8B09EC00BD"}}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.frameStartedLoading","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.frameNavigated","params":{"frame":{"id":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","url":"http://localhost:8000/","securityOrigin":"http://localhost:8000","mimeType":"text/html"}},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"DOM.documentUpdated","params":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"Network.dataReceived","params":{"requestId":"946E1DE1FC063361360B31998681705C","timestamp":195994.066566,"dataLength":656,"encodedDataLength":0},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +3ms puppeteer:protocol ◀ RECV {"method":"Network.loadingFinished","params":{"requestId":"946E1DE1FC063361360B31998681705C","timestamp":195994.032156,"encodedDataLength":0,"shouldReportCorbBlocking":false},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.loadEventFired","params":{"timestamp":195994.070869},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +45ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"load","timestamp":195994.070869},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"method":"Page.frameStoppedLoading","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.domContentEventFired","params":{"timestamp":195994.097616},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"DOMContentLoaded","timestamp":195994.097616},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.loadEventFired","params":{"timestamp":195994.070878},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.frameStoppedLoading","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +1ms puppeteer:protocol ◀ RECV {"method":"DOM.documentUpdated","params":{},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.domContentEventFired","params":{"timestamp":195994.09762},"sessionId":"0313B2AD0426A7188BC93EBA3D6F8D15"} +0ms puppeteer:protocol ◀ RECV {"method":"Log.entryAdded","params":{"entry":{"source":"other","level":"error","text":"Site cannot be installed: Page has no manifest <link> URL","timestamp":1618302904323.69,"url":"http://localhost:8000/"}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +18ms puppeteer:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"requestId":"1000037436.2","loaderId":"946E1DE1FC063361360B31998681705C","documentURL":"http://localhost:8000/","request":{"url":"http://localhost:8000/favicon.ico","method":"GET","headers":{"sec-ch-ua":"Chromium 78","Sec-Fetch-Mode":"no-cors","Referer":"http://localhost:8000/","Sec-Fetch-Dest":"image","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3882.0 Safari/537.36"},"mixedContentType":"none","initialPriority":"High","referrerPolicy":"no-referrer-when-downgrade"},"timestamp":195994.132074,"wallTime":1618302904.324764,"initiator":{"type":"other"},"type":"Other","frameId":"6DAD742822835DE715BE5F8B09EC00BD","hasUserGesture":false},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"method":"Network.requestWillBeSentExtraInfo","params":{"requestId":"1000037436.2","blockedCookies":[],"headers":{"Host":"localhost:8000","Connection":"keep-alive","sec-ch-ua":"Chromium 78","Sec-Fetch-Mode":"no-cors","Sec-Fetch-Dest":"image","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3882.0 Safari/537.36","Accept":"image/webp,image/apng,image/*,*/*;q=0.8","Sec-Fetch-Site":"same-origin","Referer":"http://localhost:8000/","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-GB,en-US;q=0.9,en;q=0.8"}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Network.responseReceivedExtraInfo","params":{"requestId":"1000037436.2","blockedCookies":[],"headers":{"Server":"SimpleHTTP/0.6 Python/3.8.5","Date":"Tue, 13 Apr 2021 08:35:04 GMT","Connection":"close","Content-Type":"text/html;charset=utf-8","Content-Length":"469"},"headersText":"HTTP/1.0 404 File not found\r\nServer: SimpleHTTP/0.6 Python/3.8.5\r\nDate: Tue, 13 Apr 2021 08:35:04 GMT\r\nConnection: close\r\nContent-Type: text/html;charset=utf-8\r\nContent-Length: 469\r\n\r\n"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +4ms puppeteer:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"1000037436.2","loaderId":"946E1DE1FC063361360B31998681705C","timestamp":195994.136327,"type":"Other","response":{"url":"http://localhost:8000/favicon.ico","status":404,"statusText":"File not found","headers":{"Date":"Tue, 13 Apr 2021 08:35:04 GMT","Server":"SimpleHTTP/0.6 Python/3.8.5","Connection":"close","Content-Length":"469","Content-Type":"text/html;charset=utf-8"},"mimeType":"text/html","connectionReused":true,"connectionId":21,"remoteIPAddress":"127.0.0.1","remotePort":8000,"fromDiskCache":false,"fromServiceWorker":false,"fromPrefetchCache":false,"encodedDataLength":184,"timing":{"requestTime":195994.132935,"proxyStart":-1,"proxyEnd":-1,"dnsStart":-1,"dnsEnd":-1,"connectStart":-1,"connectEnd":-1,"sslStart":-1,"sslEnd":-1,"workerStart":-1,"workerReady":-1,"sendStart":0.164,"sendEnd":0.222,"pushStart":0,"pushEnd":0,"receiveHeadersEnd":2.581},"protocol":"http/1.0","securityState":"secure"},"frameId":"6DAD742822835DE715BE5F8B09EC00BD"},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Log.entryAdded","params":{"entry":{"source":"network","level":"error","text":"Failed to load resource: the server responded with a status of 404 (File not found)","timestamp":1618302904329.0269,"url":"http://localhost:8000/favicon.ico","networkRequestId":"1000037436.2"}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Network.dataReceived","params":{"requestId":"1000037436.2","timestamp":195994.136494,"dataLength":469,"encodedDataLength":0},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"method":"Network.dataReceived","params":{"requestId":"1000037436.2","timestamp":195994.136661,"dataLength":0,"encodedDataLength":469},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Network.loadingFinished","params":{"requestId":"1000037436.2","timestamp":195994.135926,"encodedDataLength":653,"shouldReportCorbBlocking":false},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"firstPaint","timestamp":195994.137751},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +8ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"firstContentfulPaint","timestamp":195994.137751},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"firstMeaningfulPaintCandidate","timestamp":195994.137751},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +12ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"networkAlmostIdle","timestamp":195994.097621},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +639ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"firstMeaningfulPaint","timestamp":195994.137751},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Page.lifecycleEvent","params":{"frameId":"6DAD742822835DE715BE5F8B09EC00BD","loaderId":"946E1DE1FC063361360B31998681705C","name":"networkIdle","timestamp":195994.136668},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +0ms puppeteer:protocol ◀ RECV {"method":"Runtime.consoleAPICalled","params":{"type":"info","args":[{"type":"string","value":"+9s shadow attached to %s"},{"type":"string","value":"open"},{"type":"object","subtype":"node","className":"HTMLElement","description":"header#host","objectId":"{\"injectedScriptId\":3,\"id\":1}","preview":{"type":"object","subtype":"node","description":"header#host","overflow":true,"properties":[{"name":"title","type":"string","value":""},{"name":"lang","type":"string","value":""},{"name":"translate","type":"boolean","value":"true"},{"name":"dir","type":"string","value":""},{"name":"dataset","type":"object","value":"DOMStringMap"}]}}],"executionContextId":3,"timestamp":1618302914264.107,"stackTrace":{"callFrames":[{"functionName":"HTMLElement.attachShadow","scriptId":"14","url":"http://localhost:8000/","lineNumber":17,"columnNumber":12},{"functionName":"","scriptId":"14","url":"http://localhost:8000/","lineNumber":23,"columnNumber":28}]}},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} puppeteer:protocol SEND ► {"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB","method":"Runtime.releaseObject","params":{"objectId":"{\"injectedScriptId\":3,\"id\":1}"},"id":23} +1ms puppeteer:protocol ◀ RECV {"id":23,"result":{},"sessionId":"D9D90F0C9845C459A09442F9B0E0F0EB"} +1ms </code></pre> <p>更新:</p> <p>根据评论,我添加了以下标志:</p> <pre><code>args: [ '--enable-blink-test-features', '--enable-experimental-web-platform-features', '--fake-variations-channel=canary' ] </code></pre> <p>并应用 <pre><code>dev</code></pre>、<pre><code>beta</code></pre>、<pre><code>canary</code></pre>、<pre><code>stable</code></pre> 为 <pre><code>--fake-variations-channel</code></pre>。通知未被捕获。</p> </question> <answer tick="false" vote="0"> <p><pre><code>dom.getDocument</code></pre> 是需要调用的。看起来 <pre><code>DOM.enable</code></pre> 并未启用所有事件。</p> <p>更多信息- <a href="https://stackoverflow.com/a/79358124/27979385">https://stackoverflow.com/a/79358124/27979385</a></p> </answer> </body></html>