Skip to content

Instantly share code, notes, and snippets.

@admc
Created December 30, 2011 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save admc/1537174 to your computer and use it in GitHub Desktop.
Save admc/1537174 to your computer and use it in GitHub Desktop.
public job
var webdriver = require("../lib/main")
var browser = webdriver.remote("ondemand.saucelabs.com", 80, "admc", "key");
browser.desiredCapabilities.public = true;
browser.init(function() {
browser.get("http://www.jelly.io", function() {
browser.eval("window.location.href", function(a, o) {
console.log(o);
browser.get("http://www.seleniumhq.org", function() {
browser.quit(function() {
console.log("DONE");
})
})
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment