puppeteer 3.16.0 copy "puppeteer: ^3.16.0" to clipboard
puppeteer: ^3.16.0 copied to clipboard

A high-level API to control headless Chrome over the DevTools Protocol. This is a port of Puppeteer in Dart.

example/example.dart

import 'package:puppeteer/puppeteer.dart';

void main() async {
  // Download the Chrome binaries, launch it and connect to the "DevTools"
  var browser = await puppeteer.launch();

  // Open a new tab
  var myPage = await browser.newPage();

  // Go to a page and wait to be fully loaded
  await myPage.goto(
    'https://pub.dev/packages/puppeteer',
    wait: Until.networkIdle,
  );

  // Do something... See other examples
  await myPage.screenshot();
  await myPage.pdf();
  await myPage.evaluate<String>('() => document.title');

  // Gracefully close the browser's process
  await browser.close();
}
372
likes
150
points
405k
downloads

Publisher

verified publisherxaha.dev

Weekly Downloads

A high-level API to control headless Chrome over the DevTools Protocol. This is a port of Puppeteer in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com
github.com

License

BSD-3-Clause (license)

Dependencies

archive, async, collection, http, logging, path, petitparser, pool

More

Packages that depend on puppeteer