wd-zombie
wd headless twin.
wd-zombie is a partial wd API implementation using zombie.
Note:
- This is only worth using for simple pages, not relying heavily on Javacripts.
- This package wont be maintained/improved, at least until Zombie 2 is stable.
usage
CoffeeScript
webdriver = require"wd-zombie"assert = require"assert" browser = webdriverremote browserinit browserName: "zombie"-> browserget "http://saucelabs.com/test/guinea-pig"-> browsertitle assertok ~titleindexOf"I am a page title - Sauce Labs""Wrong title!" browserelementById "submit" browserclickElement el-> browsereval "window.location.href" consolelog "Got title:" + title assertok ~titleindexOf"#""Wrong title!" browserquit
JavaScript
var webdriver = ;var assert = ; var browser = webdriver; browser
doc
wd methods
API identical to wd.
missing wd methods
- getComputedCss
- takeScreenshot
- isVisible
- waitForElement
- waitForVisible
- all the window + frame methods
- element.getTagName
- element.isDisplayed
- element.getComputedCss
- element.getValue
- waitForElementByClassName
- waitForElementByCssSelector
- waitForElementById
- waitForElementByName
- waitForElementByLinkText
- waitForElementByPartialLinkText
- waitForElementByTagName
- waitForElementByXPath
- waitForElementByCss
- waitForVisibleByClassName
- waitForVisibleByCssSelector
- waitForVisibleById
- waitForVisibleByName
- waitForVisibleByLinkText
- waitForVisibleByPartialLinkText
- waitForVisibleByTagName
- waitForVisibleByXPath
- waitForVisibleByCss
extra methods
- retrieve the zombie browser object: zombieBrowser(done) -> done(err, browser)
test
once: cake prepare:test
then: cake test