Created
May 21, 2015 02:40
-
-
Save crossbrowsertesting/fc731ac3f73561aac89d to your computer and use it in GitHub Desktop.
webdriverio example
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'); | |
var webdriverio = | |
client = webdriverio.remote({ | |
desiredCapabilities: { | |
name : 'Selenium Test Example', | |
build : '1.0', | |
browser_api_name : 'FF35', | |
os_api_name : 'WinXPSP2-C2', | |
screen_resolution : '1024x768', | |
record_video : "true", | |
record_network : "true", | |
record_snapshot : "false", | |
browserName : "firefox", // <---- this needs to be the browser type in lower case: firefox, internet explorer, chrome, opera, or safari | |
username : "CROSSBROWSER USER NAME", | |
password : "CROSSBROWSER AUTH KEY" | |
}, | |
host: 'hub.crossbrowsertesting.com', | |
port: 80, | |
user: "CROSSBROWSER USER NAME", | |
key: "CROSSBROWSER AUTH KEY", | |
logLevel: 'silent' | |
}).init(); | |
client | |
.url('http://www.google.com') | |
.getTitle(function(err, title) { | |
console.log('Title was: ' + title); | |
}) | |
.end(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment