¿Es posible leer DOM del sitio web con la URL dada en BrowserView? Tengo un código que se parece a este, y Electron arroja un error: "No se pudo clonar un objeto"
// Create the browser window. const mainWindow = new BrowserWindow({ height: 800, width: 1200, webPreferences: { preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, }, }); const view = new BrowserView({ webPreferences: { webSecurity: false, allowRunningInsecureContent: true, }, }); mainWindow.setBrowserView(view); view.setBounds({ x: 200, y: 0, width: 900, height: 800 }); view.webContents.loadURL("https://electronjs.org"); view.setAutoResize({ width: true, height: true }); view.webContents .executeJavaScript("document.querySelector('body')") .then((result) => { console.log("html", result); }) .catch((err) => console.log(err)); // and load the index.html of the app. mainWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY); // Open the DevTools. mainWindow.webContents.openDevTools(); };```