Created
April 21, 2013 03:50
-
-
Save sankargorthi/5428391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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