问题描述
我查看了 ,并尝试了以下设置,但 devtools 仍然在右侧打开。
有谁知道在 userPrefs 中设置什么以在 puppeteer-extra 底部打开 devtools?
            puppeteer.use(require('puppeteer-extra-plugin-user-preferences')({
            userPrefs: {
                devtools: {
                    currentDockState: "bottom"
                }
            }
        }))
 
 1楼 
  
    fullmetal 
    0 
    2020-11-06 19:27:52
  
 
 尝试
puppeteer.use(require('puppeteer-extra-plugin-user-preferences')({
            userPrefs: {
                devtools: {
                    currentDockState: '"bottom"'
                }
            }
        }))