Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise(function(resolve, reject){
// eslint-disable-next-line @typescript-eslint/camelcase
exports.bs_local = new browserstack.Local();
exports.bs_local.start({'key': exports.config.key }, function(error) {
if (error) return reject(error);
console.log('Connected. Now testing...');
resolve();
});
});
},
return new Promise(function (resolve, reject) {
exports.bsLocal = new browserstack.Local();
exports.bsLocal.start({ key: exports.config.key }, function (error) {
if (error) return reject(error);
// console.log("Connected. Now testing...");
resolve();
});
});
},
return new Promise(function (resolve, reject) {
exports.bs_local = new browserstack.Local();
exports.bs_local.start({ 'key': exports.config.key, 'force': true }, function (error) {
if (error) return reject(error);
console.log('Connected. Now testing...');
resolve();
});
});
},
return new Promise(function (resolve, reject) {
exports.bs_local = new browserstack.Local();
exports.bs_local.start({'key': exports.config.commonCapabilities['browserstack.key']}, function (error) {
if (error) return reject(error);
console.log('Connected. Now testing...');
resolve();
});
});
},
return new Promise(((resolve, reject) => {
exports.bs_local = new browserstack.Local();
exports.bs_local.start(
{
'key': exports.config.key,
'force': 'true'
}
, (error) => {
if (error) return reject(error);
console.log('Connected. Now testing...');
resolve();
});
}));
},
return new Promise(function (resolve, reject) {
exports.bs_local = new browserstack.Local();
exports.bs_local.start({'key': config.capabilities['browserstack.key'] }, function (error) {
if (error) return reject(error);
console.log('BrowserStack Connected. Now testing...');
psnode.lookup({command: 'BrowserStackLocal'}, function (err, list) {
exports.bs_local_processes = list;
resolve();
});
});
})
};
before(function(done) {
bsLocal = new browserstack.Local();
bsLocal.start({
'key': caps['browserstack.key']
}, function(error) {
if (error) done(error);
driver = buildDriver(caps);
done();
});
});
async start() {
this.browserstackLocal = new browserstack.Local()
await new Promise((resolve, reject) => {
this.browserstackLocal.start({ key: process.env.BROWSERSTACK_KEY }, () => {
resolve()
})
})
await super.start()
}
return new Promise(function (resolve, reject) {
exports.bs_local = new browserstack.Local()
exports.bs_local.start({
key: browserstackKey,
force: true
}, function (error) {
if (error) return reject(error)
console.log('Connected. Now testing...')
resolve()
})
})
},
beforeEach : function(browser, done) {
console.log("Connecting local");
bs_local = new browserstack.Local();
bs_local.start({'key': browser.options.desiredCapabilities['browserstack.key'] }, function(error) {
if (error) return done(error);
console.log('Connected. Now testing...');
done();
});
},