# taxi-rank

> A JSDom based Selenium Webdriver API

Latest version **2.1.0** (published 2017-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install taxi-rank
pnpm add taxi-rank
yarn add taxi-rank
bun add taxi-rank
```

Provides the command `taxi-rank`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2017-07-08 |
| First published | 2017-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 19 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 343 |
| Author | Forbes Lindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/taxi-rank
- Repository: https://github.com/ForbesLindesay/taxi-rank
- Homepage: https://github.com/ForbesLindesay/taxi-rank#readme
- Issues: https://github.com/ForbesLindesay/taxi-rank/issues
- npm.io page: https://npm.io/package/taxi-rank

## Dependencies (19)

- [uuid](https://npm.io/package/uuid.md) ^3.0.1
- [jsdom](https://npm.io/package/jsdom.md) ^11.0.0
- [parse5](https://npm.io/package/parse5.md) ^3.0.2
- [throat](https://npm.io/package/throat.md) ^4.0.0
- [express](https://npm.io/package/express.md) ^4.15.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [whatwg-url](https://npm.io/package/whatwg-url.md) ^5.0.0
- [@types/node](https://npm.io/package/@types/node.md) ^8.0.3
- [@types/uuid](https://npm.io/package/@types/uuid.md) ^3.0.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.2
- [@types/jsdom](https://npm.io/package/@types/jsdom.md) ^11.0.1
- [@types/parse5](https://npm.io/package/@types/parse5.md) ^3.0.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.18.0
- [@types/express](https://npm.io/package/@types/express.md) ^4.0.36
- [node-storage-shim](https://npm.io/package/node-storage-shim.md) ^1.0.1
- [@types/body-parser](https://npm.io/package/@types/body-parser.md) ^1.16.4
- [webidl-conversions](https://npm.io/package/webidl-conversions.md) ^4.0.1
- [@types/tough-cookie](https://npm.io/package/@types/tough-cookie.md) ^2.3.0
- [@forbeslindesay/jsdom](https://npm.io/package/@forbeslindesay/jsdom.md) ^11.1.8

## Recent versions

- 2.1.0 (latest) — 2017-07-08
- 2.0.0 — 2017-07-08
- 1.2.4 — 2017-06-26
- 1.2.3 — 2017-06-26
- 1.2.2 — 2017-06-21
- 1.2.1 — 2017-06-21
- 1.2.0 — 2017-05-27
- 1.1.0 — 2017-05-27
- 1.0.3 — 2017-05-27
- 1.0.2 — 2017-05-27
- 1.0.1 — 2017-05-27
- 1.0.0 — 2017-05-27

## README

# taxi-rank

A super fast JSDom based Selenium Webdriver API. Write end to end tests once and run them against this super fast, headless browser built on node.js, then once those tests pass you can run them against real browsers in the cloud!

[![Build Status](https://img.shields.io/travis/ForbesLindesay/taxi-rank/master.svg)](https://travis-ci.org/ForbesLindesay/taxi-rank)
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/taxi-rank/master.svg)](http://david-dm.org/ForbesLindesay/taxi-rank)
[![NPM version](https://img.shields.io/npm/v/taxi-rank.svg)](https://www.npmjs.org/package/taxi-rank)

## Installation

```
npm install taxi-rank -g
```

## Usage

In a separate terminal, run `taxi-rank`, then you can use cabbie (or your webdriver client of choice), to connect to this super-fast virtual driver:

```js
import assert from 'assert';
import cabbie from 'cabbie-sync';

// connect to taxi-rank, adding {debug: true} makes cabbie log each method call.
const driver = cabbie('taxirank', {debug: true});

try {
  // navigate to a url in the currently active window
  driver.browser.activeWindow.navigateTo('http://example.com');

  // get an element, and check that its text equals some expected value
  assert.equal(
    driver.browser.activeWindow.getElement('h1').getText(),
    'Example Domain',
  );
} finally {
  // whether tests pass or fail, dispose of the driver
  driver.dispose();
}
```

You can find full API docs for cabbie at https://cabbiejs.org/api/ but you can use any webdriver client by simply telling it to conenct to `http://localhost:9516`

## License

MIT

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