Skip to content

Instantly share code, notes, and snippets.

@sand3r
Created November 4, 2014 15:52
Show Gist options
  • Save sand3r/29a431366d89442c5dfb to your computer and use it in GitHub Desktop.
Save sand3r/29a431366d89442c5dfb to your computer and use it in GitHub Desktop.
webdriverio example test
var webdriverio = require('webdriverio');
var options = {
desiredCapabilities: {
browserName: 'firefox'
}
};
webdriverio
.remote(options)
.init()
.url('http://www.google.com')
.title(function(err, res) {
console.log('Title was: ' + res.value);
})
.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment