admc/wd — pull request #32 by Pita (2012-06-09 19:35:57+00:00)
Title: allow method chaining via chain()

inspired by soda https://github.com/LearnBoost/soda

Here is an example how you can use this

browser
.chain()
.init()
.get(options.config.url + "/")
.elementById('button', function(err, button){
browser.clickElement(button)
.url(function(err, location){
assert.equal(location.indexOf("/p/") !== -1, true, "Clicking on 'New Pad' doesn't work");
callback();
});
});