📜  在 puppeteer macos 中打开 google chrome - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:11.445000             🧑  作者: Mango

代码示例1
/**
       * create a puppeteer 'Browser' object.
       */
      public static createBrowser(): Promise {
        return puppeteer.launch({
          // ... other options
          headless: false,
          executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
        });
      }