Created
July 29, 2019 10:05
-
-
Save d668/0b1e65317cda7727a3984caf8796ee06 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 webdriverio = require('webdriverio'); | |
(async function () { | |
var client = webdriverio.remote(getOptions(true)); | |
await client.init(); | |
await client.url('https://duckduckgo.com/'); | |
})(); | |
function getOptions() { | |
var options = { | |
desiredCapabilities: { | |
browserName: 'chrome', | |
loggingPrefs: { | |
'browser': 'ALL', | |
'driver': 'ALL', | |
'performance': 'ALL' | |
}, | |
'goog:chromeOptions': { | |
perfLoggingPrefs: { | |
traceCategories: 'performance' | |
} | |
} | |
} | |
} | |
return options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment