1
User
Recs.
Recs.
13
Updates
Last
Updated
Updated
Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
Activity
8 Options
WD.js is a Node.js Webdriver/Selenium 2 client that implements the JSONWire protocol and offers Q promises with chaining and Yiwed generators to avoid nested callbacks. It also has Mocha integration.
Specs
Specs are quantitative aspects of the option such as the price
Pros
Pro Cleaner and more concise code than WebdriverJS
There is no need to pass the 'driver' instance around, and not as many parentheses.
Using WD.js
function login(username, password) {
return this
.waitForElementByCss('.loginForm', asserters.isDisplayed, seconds(explicit_wait))
.elementById('emailAddress').sendKeys(username)
.elementById('password').sendKeys(password)
.elementById('signInButton').click()
}
Using WebDriverJS
function login(driver, username, password) {
driver.wait(until.elementIsVisible(driver.findElement({css: '.loginForm'})), seconds(explicit_wait));
driver.findElement({id: 'emailAddress'}).sendKeys(username);
driver.findElement({id: 'password'}).sendKeys(password);
driver.findElement({id: 'signInButton'}).click();
}
Know any positive aspects of this option?
Cons


Con Less activity than WebdriverIO
WebdriverIO issues: 34 open, 507 closed. First release May 2012 at v0.6
WD.js issues: 18 open, 216 closed. First release: April 2011
Know any negative aspects of this option?
Recommendations
Comments
See Product Page for "WD.js"Built By the Slant team
Find the best product instantly.
Lustre recommends the best products at their lowest prices – right on Amazon.
4.7 star rating
Try it now - it's free