Skip to content

Instantly share code, notes, and snippets.

@techieBrandon
Last active November 17, 2017 12:36
Show Gist options
  • Save techieBrandon/b65c164012f68a7ca99555bf92d8cb8c to your computer and use it in GitHub Desktop.
Save techieBrandon/b65c164012f68a7ca99555bf92d8cb8c to your computer and use it in GitHub Desktop.
Debugging Protractor
var webdriver = require('selenium-webdriver');
var printPage = function () {
return browser.getPageSource();
};
var logPage = function (txt) {
console.log(txt);
};
describe('investigation', function() {
it('should show DOM', function() {
browser.get('http://www.example.com').then(printPage).then(logPage);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment