# chrome-drone

> Autonomously control chrome

Latest version **0.15.3** (published 2018-01-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install chrome-drone
pnpm add chrome-drone
yarn add chrome-drone
bun add chrome-drone
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.15.3 |
| Published | 2018-01-02 |
| First published | 2017-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Author | Legion |
| Maintainers | unbill |
| Keywords | browser automation, headless chrome |

## Links

- npm: https://www.npmjs.com/package/chrome-drone
- Repository: https://github.com/unbill/chrome-drone
- Homepage: https://github.com/unbill/chrome-drone#README
- Issues: https://github.com/unbill/chrome-drone/issues
- npm.io page: https://npm.io/package/chrome-drone

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ^3.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.7.8
- [chrome-launcher](https://npm.io/package/chrome-launcher.md) ^0.6.0
- [chrome-remote-interface](https://npm.io/package/chrome-remote-interface.md) ^0.24.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.15.3 (latest) — 2018-01-02
- 0.15.2 — 2017-09-21
- 0.15.1 — 2017-09-19
- 0.14.0 — 2017-09-18
- 0.13.1 — 2017-09-18
- 0.13.0 — 2017-09-15
- 0.12.1 — 2017-09-14
- 0.12.0 — 2017-09-14
- 0.11.0 — 2017-09-13
- 0.10.5 — 2017-09-13
- 0.10.4 — 2017-09-12
- 0.10.3 — 2017-09-12
- 0.10.2 — 2017-09-12
- 0.10.1 — 2017-09-12
- 0.10.0 — 2017-09-12
- … 11 more at https://npm.io/package/chrome-drone/versions

## README

# Chrome Drone

[![npm version](https://badge.fury.io/js/chrome-drone.svg)](https://badge.fury.io/js/chrome-drone)

Autonomously control the chrome browser

## :rotating_light: Minimum Chrome Version :rotating_light:

You must have Chrome version 61.XX or greater installed

## Installation

`npm install chrome-drone`

## Sample Usage

``` js
const { createDrone, goTo, setValue, click, evaluate, waitForLoadingToFinish, kill } = require('chrome-drone');

async function stockPrice(symbol) {
  const drone  = await createDrone({headless: true});
  try {
    await goTo(drone, 'https://duckduckgo.com/');
    await setValue(drone, '#search_form_input_homepage', `stock quote ${symbol}`);
    await click(drone, '#search_button_homepage');
    await waitForLoadingToFinish(drone, 30000);
    const priceLastTrade = await evaluate(drone, `document.querySelector('span.stocks__quote.text--primary').innerText`);
    console.log(`Price of last trade: ${priceLastTrade}`);
  } finally {
    await kill(drone);
  }
}

stockPrice('QTWO');
```

## API Documentation

[API](https://unbill.github.io/chrome-drone/index.html)

## Run Tests

`npm test`

## Debugging options

- drone-requests
- drone-cookies
- drone-blacklist
- drone-loading

---
_Source: https://npm.io/package/chrome-drone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
