Skip to content

Commit

Permalink
Stringify "browser" for saucelabs support
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 7, 2010
1 parent d897447 commit fdea336
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.DS_Store
test.js
1 change: 1 addition & 0 deletions Readme.md
Expand Up @@ -7,5 +7,6 @@

## More Information

- [Saucelabs Browsers](http://saucelabs.com/products/docs/sauce-ondemand/browsers)
- [Selenese Introduction](http://seleniumhq.org/docs/02_selenium_basics.html)
- [Command Reference](http://release.seleniumhq.org/selenium-core/0.8.0/reference.html).
4 changes: 3 additions & 1 deletion lib/soda/client.js
Expand Up @@ -32,7 +32,9 @@ var Client = exports = module.exports = function Client(options) {
this.port = options.port || 4444;
this.browser = options.browser || 'firefox';
this.url = options.url;
if (this.browser[0] !== '*') this.browser = '*' + this.browser;
if (this.browser[0] !== '*') {
this.browser = '*' + this.browser;
}
EventEmitter.call(this);
};

Expand Down

0 comments on commit fdea336

Please sign in to comment.