Skip to content

Instantly share code, notes, and snippets.

@beckyconning
Created November 6, 2012 18:08
Show Gist options
  • Select an option

  • Save beckyconning/4026455 to your computer and use it in GitHub Desktop.

Select an option

Save beckyconning/4026455 to your computer and use it in GitHub Desktop.
// Domain Specific Language:
ActualBrowserWorld.prototype.startObjectEditor = function (callback) {
var self = this;
self.browser
.chain
.session()
.open('http://localhost/~becky/island/tools/object-editor/index.html')
.assertTitle("*Object Editor")
.end(function(err){
self.browser.testComplete(function() {
if(err) { callback.fail(err); }
else { callback(); }
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment