Skip to content

Commit e8f4d1b

Browse files
committed
Merge pull request #39 from alnutile/patch-1
Allow the option to choose the browser list to get
2 parents 786ba0d + 51447ee commit e8f4d1b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/WebDriver/SauceLabs/SauceRest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,13 @@ public function getStatus()
269269
*
270270
* @return array
271271
*/
272-
public function getBrowsers()
272+
public function getBrowsers($browser = FALSE)
273273
{
274-
return $this->execute('GET', 'info/browsers');
274+
if($browser) {
275+
return $this->execute('GET', 'info/browsers/' . $browser);
276+
} else {
277+
return $this->execute('GET', 'info/browsers');
278+
}
275279
}
276280

277281
/**

0 commit comments

Comments
 (0)