我想用傀儡机启动Chrome,在移动调试模式下,意味着单击devtools.中的“切换设备工具栏”按钮。
对不起,我没有足够的威望上传照片。
我尝试了以下代码,但没有成功:
const browser = await puppeteer.launch({
devtools: true,
ignoreHTTPSErrors: true,
isMobile:true //I thought it would be fine to set isMobile: true, but not
});
那我该怎么办?
参考资料:
我目前正在操作系统10.9.2上运行Chrome 34.0.1847.116,并尝试使用Web。在启用chrome:// /#enable之后,我可以通过将下面的代码从粘贴到DevTools控制台,从而获得一个DevTools对象。
var midi = null; // global MIDIAccess object
function onMIDISuccess( midiAccess ) {
console.log( "MIDI ready!" );
midi = midiAccess; // store in the global (in r
我正在开发移动应用程序(在Ionic4中),但我无法在chrome devtools中检查和调试它。当我转到Chrome/inspect时,列表中显示了正在运行应用程序的设备,但当我单击inspect时,只打开了空白页面,如下所示:
当我点击Ctrl+Shift+I重新打开空白页面,并且我可以查看控制台时,出现了一些错误:
Uncaught TypeError: Cannot read property 'appendChild' of null
at installExtraStyleRules (devtools_compatibility.js:1484)
at in
我正在开发一个带有自定义devtools面板的web扩展,该面板通过脚本API注入内容脚本。内容脚本通过chrome.runtime.sendMessage发送消息,devtools面板正在监听该消息。下面是这个流的最小示例(在面板中):
function onMessageFromContentScript(message) {
// React to message
}
async function injectContentScript() {
chrome.runtime.onMessage.addListener(onMessageFromContentScript);