phantom-wd
0.0.3 • Public • Published phantom-wd
A webdriver (using wd) wrapper around PhantomJS.
PhantomJS must be installed and available on the PATH
for this package to work.
Usage
var phantom = require("phantom-wd");
var browserPromise = phantom({
debug: false
port: 8910
});
browserPromise
is a promise for wd.promiseRemote
.
phantom()
.then(function (browser) {
return browser.get("http://admc.io/wd/test-pages/guinea-pig.html")
.then(function () {
return browser.execute("return document.title");
})
.then(function (title) {
expect(title).toEqual("WD Tests");
return browser.quit();
});
})
.done();
License
BSD 2-Clause
Package Sidebar
Install
Weekly Downloads