Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created December 5, 2011 17:51
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 canonic-epicure/1434550 to your computer and use it in GitHub Desktop.
Save canonic-epicure/1434550 to your computer and use it in GitHub Desktop.
for (var i = 0; i < browser.length; i++) {
try {
// add "*" at the beginning if absent
var browserName = browser[ i ].replace(/^\*?/, '*')
var selenium = new DefaultSelenium(serverHost, serverPort, browserName, harnessURL)
selenium.start()
supported.push({
browserName : browserName,
selenium : selenium
})
} catch (e) {
debug("Ignoring not supported browser: " + browserName)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment