cabbie-async

Cabbie is a webdriver client. It allows can be used in both an asynchronous and asynchronous mode. The synchronous mode is much easier to use, however you may get slightly better performance from the asynchronous mode, especially if you are running many tests in parallel.

Synchronous and asynchronous modes have almost identical APIs, but you can toggle the documentation between them using the button at the right hand end of the navbar.

createCabbieDriver(remote, options?): Driver

import createCabbieDriver from 'cabbie-async';
remote
string
options
Options

Create a new cabbie Driver. See getting started for examples.

getSessions(remote, options?): Promise<Array<Session>>

import {getSessions} from 'cabbie-async';
remote
string
options
Options

Returns a list of the currently active sessions

Note: Appears not to be supported by the selenium-standalone-server!

getStatus(remote, options?): Promise<Status>

import {getStatus} from 'cabbie-async';
remote
string
options
Options

Gets the selenium-system status

startChromedriver(): void

import {startChromedriver} from 'cabbie-async';

Start a chromedriver instance. You must have installed chromedriver to use this:

npm install chromedriver --save-dev

waitFor(fn, timeout?): Promise<>

import {waitFor} from 'cabbie-async';
fn
() => Promise<>
timeout
number

Retry a function until it stops returning null/undefined, up to a default timeout of 5 seconds.