This commit is contained in:
David Štaleker
2024-02-23 12:56:54 +01:00
parent 18bac3de1c
commit 28d1630749
1388 changed files with 558637 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
const browsers = require('./browsers.json')
, err = require('utilise/err')('[popper][browserstack]')
module.exports = { browsers, connect }
function connect(wd) {
const env = process.env
, key = env.BROWSERSTACK_KEY
, user = env.BROWSERSTACK_USERNAME
, host = 'hub.browserstack.com'
return !user || !key
? (err('Please provide your BrowserStack Credentials'), false)
: wd.remote(host, 80, user, key)
}