Available browsers for sauce labs, browser stack and testing bot. This lets you get the capabilities for the platform of your choice, and switch effortlessly between them.
npm install available-browsers --save
var availableBrowsers = require('available-browsers');
var capabilities = getCapabilities('browserstack', 'chrome');
args:
- remote:
'browserstack' | 'saucelabs' | 'testingbot'
- browser:
'android' | 'chrome' | 'edge' | 'firefox' | 'ie' | 'ios' | 'opera' | 'safari'
- version: string - defaults to latest version that's available on all three remotes
- operating system: string - defaults to latest windows for all desktop browsers except safari, defaults to latest mac on safari, defaults to most recent iPhone/android.
MIT