Skip to content

yinjunok/react-copy-to-clipboard

Repository files navigation

备忘 puppeteer 安装

  1. 不自动下载 Chromium
yarn add puppeteer --dev --ignore-scripts
  1. https://download-chromium.appspot.com/ 手动下载 chromium

  2. 手动设置 chromium 位置

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({
    executablePath: './chromium/chrome.exe',
    headless: false
  });
  const page = await browser.newPage();
  await page.goto('http://music.163.com/');
  await page.screenshot({path: 'music.png'});
  browser.close();
})();

TODO

  • 复制状态
  • 单元测试
  • 使用文档

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published