I am working on an electron application that makes use of Puppeteer for some process.
This is the block of code I use to summon browsers:
var browser = await puppeteer.launch({
headless: false,
ignoreHTTPSErrors: true,
defaultViewport: { width: 1920, height:1080 },
});
For specific reasons, I need the headless option to be false for the app to work, but at the same time I would like it if the app didn't actually bring up visible web browsers.
Is there any way (and I really mean ANY way. docker containers, remote servers, etc. I'm open to any and all suggestions) I can make these browsers invisible to the user while keeping the headless: false
line of code?
I couldn't find any similar questions for this.
Thank You
question from:
https://stackoverflow.com/questions/65852306/is-there-any-way-to-hide-a-puppeteer-browser-that-has-the-option-headless-fals 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…