saucelabs
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -186,2 +186,44 @@ var https = require('https'); | ||
Saucelabs.prototype.getAllBrowsers = function(callback){ | ||
var self = this; | ||
this.send({ | ||
path: 'info/browsers/all', | ||
method: 'GET' | ||
}, function(err, res){ | ||
if(err && typeof callback == 'function') return callback(err); | ||
if(typeof callback == 'function'){ | ||
callback(null, res); | ||
} | ||
}) | ||
} | ||
Saucelabs.prototype.getSeleniumBrowsers = function(callback){ | ||
var self = this; | ||
this.send({ | ||
path: 'info/browsers/selenium-rc', | ||
method: 'GET' | ||
}, function(err, res){ | ||
if(err && typeof callback == 'function') return callback(err); | ||
if(typeof callback == 'function'){ | ||
callback(null, res); | ||
} | ||
}) | ||
} | ||
Saucelabs.prototype.getWebDriverBrowsers = function(callback){ | ||
var self = this; | ||
this.send({ | ||
path: 'info/browsers/webdriver', | ||
method: 'GET' | ||
}, function(err, res){ | ||
if(err && typeof callback == 'function') return callback(err); | ||
if(typeof callback == 'function'){ | ||
callback(null, res); | ||
} | ||
}) | ||
} | ||
Saucelabs.prototype.getTestCounter = function(callback){ | ||
@@ -188,0 +230,0 @@ var self = this; |
@@ -5,3 +5,3 @@ { | ||
"description": "A wrapper around Saucelabs REST API", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"homepage": "https://github.com/holidayextras/node-saucelabs", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -33,3 +33,3 @@ # node-saucelabs -- Node wrapper around the Saucelabs REST API | ||
console.log(res); | ||
myAccount.getBrowsers( function (err, res) { | ||
myAccount.getAllBrowsers( function (err, res) { | ||
//List of all browser/os combinations currently supported on Sauce Labs. | ||
@@ -148,9 +148,23 @@ console.log(res); | ||
<td> | ||
GET /info/browsers <br /> | ||
GET /info/browsers/all <br /> | ||
Returns an array of strings corresponding to all the browsers currently supported on Sauce Labs. | ||
</td> | ||
<td>getBrowsers(cb) -> cb(err, res)</td> | ||
<td>getAllBrowsers(cb) -> cb(err, res)</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
GET /info/browsers/selenium-rc <br /> | ||
Returns an array of strings corresponding to all the browsers currently supported under Selenium on Sauce Labs. | ||
</td> | ||
<td>getSeleniumBrowsers(cb) -> cb(err, res)</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
GET /info/browsers/webdriver <br /> | ||
Returns an array of strings corresponding to all the browsers currently supported under WebDriver on Sauce Labs. | ||
</td> | ||
<td>getWebDriverBrowsers(cb) -> cb(err, res)</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
GET /info/counter <br /> | ||
@@ -157,0 +171,0 @@ Returns the number of test executed so far on Sauce Labs. |
16621
343
203