Access to page DOM of external url


#1

Hi, I’m new on electron.

I just create a base app that load in a main BrowserWindow an url.

let  mainWindow = new BrowserWindow({...});

mainWindow.loadURL('https://my-url.com/');

The loaded page has a DOM and a window with some global variables.

I’d like to get manage the DOM and get that variable at my main Process file (main.js) so I can call methods on the loaded page.

Can you help me please?

Thank you in advance.