ca
cabbie-alpha
npm i cabbie-alpha
ca

cabbie-alpha

WebDriver for the masses

by Forbes Lindesay

1.0.1 (see all)License:MITTypeScript:Not Found
npm i cabbie-alpha
Readme

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

Downloads/wk

6

GitHub Stars

72

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

6

OPEN ISSUES

6

OPEN PRs

1
VersionTagPublished
1.0.1
latest
8yrs ago
No alternatives found
No tutorials found
Add a tutorial