Closed hongda3141 closed 1 year ago
You cannot install extensions on headless mode so headless mode is disabled^^
You cannot install extensions on headless mode so headless mode is disabled^^ @mpetrunic Thanks a lot for helping! By the way, is this a new feature? Because I tried to use the
headless
mode in the v2.4.1 and succeeded. So is that "headless" mode is not available in the new version of v3.0.0 or v4.0.1?
that's worked for me by using "--headless=new"
:
import puppeteer from 'puppeteer';
import dappeteer from '@chainsafe/dappeteer';
async function main() {
const DAPPETEER_DEFAULT_CONFIG = {
metamaskVersion: "10.23.0",
headless: true,
args: [
"--headless=new",
],
}
const browser = await dappeteer.launch(puppeteer, DAPPETEER_DEFAULT_CONFIG);
}
Describe the problem Hi, i tried to config headless mode with code like this,but it doesn't work, the pages come out.How to config
--headless
mode?Thanks in advance
System: