Last active
November 17, 2017 12:36
-
-
Save techieBrandon/b65c164012f68a7ca99555bf92d8cb8c to your computer and use it in GitHub Desktop.
Debugging Protractor
This file contains 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
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