Skip to content

Instantly share code, notes, and snippets.

@epall
Created April 14, 2011 19:44
Show Gist options
  • Save epall/920311 to your computer and use it in GitHub Desktop.
Save epall/920311 to your computer and use it in GitHub Desktop.
var soda = require('soda');
var browser = soda.createSauceClient({
'url': 'https://saucelabs.com/',
'os': 'Windows 2003',
'browser': 'firefox',
'idle-timeout': 10,
'user-extensions-url': ['https://saucelabs.com/ext/test-extension.js'],
'browser-version': '3.6'});
browser
.chain
.session()
.setTimeout(15000)
.open('/')
.assertEval('extension1', 'true')
.testComplete()
.end(function(err){
if (err) throw err;
console.log('Passed!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment