taxi

0.2.9 • Public • Published

Taxi

An Object-oriented Selenium WebDriver Client for Node.

Build Status Coveralls Coverage Code Climate Grade

NPM version NPM License

NPM NPM

Coverage Report API Documentation

Gitter Support

Installation

npm install taxi

Usage

var assert = require('assert');
var taxi = require('taxi');
 
var driver = taxi('http://localhost:4444/wd/hub', { browserName:'firefox' }, { mode: taxi.Driver.MODE_SYNC });
var browser = driver.browser();
var activeWindow = browser.activeWindow();
 
// Set url and assert a header-text
activeWindow.navigator().setUrl('http://www.example.com');
assert.equal(activeWindow.getElement('h1').getText(), 'Example Domain');
 
// Click on element
activeWindow.getElement('h1').mouse().click();
 
// Click on a specific coordinate
activeWindow.mouse().clickAt(500, 200);
 
// Close active window
activeWindow.close();
 
driver.dispose();

Object Reference

Object Reference

License

MIT

/taxi/

    Package Sidebar

    Install

    npm i taxi

    Weekly Downloads

    6

    Version

    0.2.9

    License

    MIT

    Last publish

    Collaborators

    • marcelerz