Skip to content

Instantly share code, notes, and snippets.

@nsbingham
Last active December 21, 2015 18:18
Show Gist options
  • Save nsbingham/6345903 to your computer and use it in GitHub Desktop.
Save nsbingham/6345903 to your computer and use it in GitHub Desktop.
browser
.get(pageUrl)
.then(function(){
return browser.elementById("url");
})
.then(function(scaninput){
return browser.type(scaninput,'microsoft');
})
.then(function(){
return browser.elementById("check_site");
})
.then(function(button){
return browser.clickElement(button);
})
.then(function(){
return browser.waitForVisibleByClassName('report-results',10000);
})
.then(function(){
return browser.executeAsync("window.location.hash");
})
.then(function (hash) {
hash.should.include('microsoft.com');
}).done(function(){
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment