Skip to content

Instantly share code, notes, and snippets.

@bclinkinbeard
Created April 14, 2014 18:05
Show Gist options
  • Save bclinkinbeard/10670175 to your computer and use it in GitHub Desktop.
Save bclinkinbeard/10670175 to your computer and use it in GitHub Desktop.
webdriverjs_mobile_safari_click_fail
var webdriverjs = require('webdriverjs');
var options = {
desiredCapabilities: {
device: 'iPhone Simulator',
platform: "Mac",
app: "safari",
// version: "6.0",
browserName: "",
newCommandTimeout: 60
},
host: 'localhost',
port: 4723
}
webdriverjs
.remote(options)
.init()
.url('http://www.example.com/')
.buttonClick('a', function(err, text) {
console.log(err);
})
.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment