cabbie-sync

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-sync';
remote
string
options
Options

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

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

import {getSessions} from 'cabbie-sync';
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?): Status

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

Gets the selenium-system status

startChromedriver(): void

import {startChromedriver} from 'cabbie-sync';

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

npm install chromedriver --save-dev

waitFor(fn, timeout?):

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

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