Skip to content

Instantly share code, notes, and snippets.

@wesleyhales
Last active August 7, 2017 17:05
Show Gist options
  • Save wesleyhales/83d2ae26df603b1b08c74cfbb8c8fee8 to your computer and use it in GitHub Desktop.
Save wesleyhales/83d2ae26df603b1b08c74cfbb8c8fee8 to your computer and use it in GitHub Desktop.
var capabilities = {
'applicationName' : 'sfo1-node'
};
var driver = new webdriver.Builder()
.withCapabilities(capabilities)
.forBrowser('chrome')
.setChromeOptions(options)
.usingServer('http://[your hub IP]:4444/wd/hub')
.build();
driver.manage().logs().get('performance').then(function(text) {
console.log(text);
});
driver.manage().logs().get('server').then(function(text) {
console.log(text);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment