Last active
August 7, 2017 17:05
-
-
Save wesleyhales/83d2ae26df603b1b08c74cfbb8c8fee8 to your computer and use it in GitHub Desktop.
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 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