Skip to content
Browse files

Remove requirement of star prefixing browser names (wtf?)

  • Loading branch information...
1 parent 85eda2f commit a32f8f8c101ce5871366a283403bdd1b84dcf2ee @tj tj committed Sep 3, 2010
Showing with 5 additions and 1 deletion.
  1. +4 −1 examples/google.js
  2. +1 −0 lib/selenium/client.js
View
5 examples/google.js
@@ -9,11 +9,14 @@ var browser = selenium.createClient({
host: 'localhost',
port: 4444,
url: 'http://www.google.com',
- browser: '*firefox'
+ browser: 'firefox'
});
browser.session(function(err){
browser.command('open', ['/'], function(err, res){
console.dir(res.body)
+ browser.command('testComplete', [], function(err, res){
+ console.dir(res.body)
+ });
});
});
View
1 lib/selenium/client.js
@@ -30,6 +30,7 @@ var Client = exports = module.exports = function Client(options) {
this.port = options.port || 4444;
this.browser = options.browser;
this.url = options.url;
+ if (this.browser[0] !== '*') this.browser = '*' + this.browser;
};
/**

0 comments on commit a32f8f8

Please sign in to comment.
Something went wrong with that request. Please try again.