Skip to content

Instantly share code, notes, and snippets.

@d668
Created July 29, 2019 10:05
Show Gist options
  • Save d668/0b1e65317cda7727a3984caf8796ee06 to your computer and use it in GitHub Desktop.
Save d668/0b1e65317cda7727a3984caf8796ee06 to your computer and use it in GitHub Desktop.
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