我想关闭第一个水龙头,只留下空白水龙头 这是一张显示我的意思的图片。
这是我的代码
const fsExtra = require('fs-extra')
const chromeLauncher = require('lighthouse/chrome-launcher/chrome-launcher');
const CDP = require('chrome-remote-interface');
const fs = require('fs');
const windowWidth = 6200;
const windowHeight = 6060;
headless=false
const launchConfig = {
chromeFlags: [
`--window-size=${windowWidth},${windowHeight}`,
'--disable-gpu',
headless ? '--headless' : ''
]
}
async function launchChrome(headless = true) {
return await chromeLauncher.launch(launchConfig);
}
const chrome = launchChrome();
console.log(chrome)