Skip to content

Instantly share code, notes, and snippets.

@doomsbuster
Created August 6, 2016 02:10
Show Gist options
  • Save doomsbuster/dc39e1fe571b9dc5d2373f01bcd8e4e2 to your computer and use it in GitHub Desktop.
Save doomsbuster/dc39e1fe571b9dc5d2373f01bcd8e4e2 to your computer and use it in GitHub Desktop.
var webdriver = require('webdriverio');
var options = {
desiredCapabilities: {
browserName: 'chrome'
},
port: 10000,
logLevel: 'verbose',
coloredLogs: true,
debug: true
};
webdriver.remote(options).init().url('http://www.google.com').getTitle().then(function(title) {
console.log(title);
}).end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment