Skip to content

Instantly share code, notes, and snippets.

@sankargorthi
Created April 21, 2013 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sankargorthi/5428391 to your computer and use it in GitHub Desktop.
Save sankargorthi/5428391 to your computer and use it in GitHub Desktop.
this.Given(/^I am doing something$/, function (callback) {
var browser = this.browser;
browser
.visit(this.home)
.then(function () {
browser.clickLink("Link Name")
.then(function () {
callback();
}).fail(function (e) {
callback.fail("Unable to click on Link Name", e);
});
})
.fail(function (e) {
callback.fail(e);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment