cabbie-alpha

1.0.1 • Public • Published

Cabbie

Cabbie

A node web-driver client

Build Status Selenium Test Status Dependency Status NPM version

API Documentation

Installation

npm install cabbie

Usage

var assert = require('assert');
var cabbie = require('cabbie');

var driver = cabbie('http://localhost:4444/wd/hub', { browserName:'firefox' }, { mode: cabbie.Browser.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

Attribution

Icon made by Icons8 from www.flaticon.com is licensed under CC BY 3.0

Readme

Keywords

none

Package Sidebar

Install

npm i cabbie-alpha

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • marcelerz