Skip to content

Commit

Permalink
added select method
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jun 24, 2015
1 parent 1526bca commit 84197a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/multibrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ function Multibrowser(instances) {
});
};

client.select = function(browserName) {
if(browserNames.indexOf(browserName) === -1) {
throw new Error('browser name ' + browserName + ' was not defined');
}
return instances[browserName];
};

return client;

};
Expand Down

0 comments on commit 84197a8

Please sign in to comment.