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

outdated

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';

main() async {
  // Start the `Chrome` process and connect to the DevTools
  // By default it is start in `headless` mode
  var browser = await Browser.start();

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

  // Go to a page and wait to be fully loaded
  await myPage.goto('https://www.github.com', wait: Until.networkIdle);

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

  // Kill the process
  await browser.close();
}
338
likes
0
pub points
91%
popularity

Publisher

verified publisherxaha.dev

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

License

unknown (LICENSE)

Dependencies

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

More

Packages that depend on puppeteer